-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 1.19 KB
/
docker-compose.yaml
File metadata and controls
40 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3'
networks:
ajmc-net:
driver: bridge
services:
ajmc-reader:
build:
context: .
dockerfile: Dockerfile
environment:
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:postgres@ajmc-postgres:5432/ajmc}
- ENABLE_AJMC_API=${ENABLE_AJMC_API:-false}
- PHX_HOST=${PHX_HOST:-0.0.0.0}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-overwrite_this_key_on_deployment_overwrite_this_key_on_deployment}
- GITHUB_API_TOKEN=${GITHUB_API_TOKEN:-https://github.com/settings/tokens}
- SENDGRID_API_KEY=${SENDGRID_API_KEY:-See sendgrid.com}
- ZOTERO_API_URL=${ZOTERO_API_URL:-https://api.zotero.org/groups/your_group_here}
- ZOTERO_API_TOKEN=${ZOTERO_API_TOKEN:-See https://www.zotero.org/settings/keys}
networks:
- ajmc-net
ports:
- "127.0.0.1:4000:4000"
ajmc-postgres:
build:
context: .
dockerfile: Dockerfile.postgres
environment:
POSTGRES_DB: ${POSTGRES_DB:-ajmc}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
PGDATA: /data/postgres
volumes:
- postgres-data:/data/postgres
networks:
- ajmc-net
volumes:
postgres-data: