-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
62 lines (58 loc) · 1.63 KB
/
docker-compose.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3.7"
services:
db:
image: postgres:15
restart: always
container_name: db
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- 5432:5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
networks:
- gregory_network
gregory:
container_name: gregory
restart: always
build:
context: django/
dockerfile: Dockerfile
# used for local development
command: python manage.py runserver 0.0.0.0:8000
# command: gunicorn --workers 4 --threads 2 --log-level debug -b 0.0.0.0:8000 admin.wsgi
volumes:
- ./django:/code
ports:
- "8000:8000"
environment:
- DB_HOST=db
- DOMAIN_NAME=${DOMAIN_NAME}
- EMAIL_DOMAIN=${EMAIL_DOMAIN}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_MAILGUN_API_URL=${EMAIL_MAILGUN_API_URL}
- EMAIL_MAILGUN_API=${EMAIL_MAILGUN_API}
- EMAIL_POSTMARK_API_URL=${EMAIL_POSTMARK_API_URL}
- EMAIL_POSTMARK_API=${EMAIL_POSTMARK_API}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_USE_TLS=${EMAIL_USE_TLS}
- ORCID_ClientID=${ORCID_ClientID}
- ORCID_ClientSecret=${ORCID_ClientSecret}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- SECRET_KEY=${SECRET_KEY}
networks:
- gregory_network
depends_on:
- db
networks:
gregory_network:
external: false
name: gregory_network
default:
driver: bridge