-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
51 lines (49 loc) · 1.05 KB
/
docker-compose.yml
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
version: '3.5'
services:
django:
# DO NOT REMOVE
# Ensures we keep access logs accross re-creates of the container
# Use journalctl CONTAINER_NAME=production_backend_1 to see them
logging:
driver: journald
build:
dockerfile: Dockerfile
context: .
volumes:
- /app/media
- /app/log
- /tmp
environment:
- HOST
- PROTO
- ADMINS
- BASICAUTH_ENABLE
- CI_ENVIRONMENT_NAME
- CI_COMMIT_SHA
- SENTRY_DSN
- MEDIA_ROOT=/app/media
- LOG_DIR=/app/log
- IPFS_PATH=/app/.ipfs
- EMAIL_HOST
- EMAIL_HOST_USER
- EMAIL_HOST_PASSWORD
- EMAIL_USE_SSL
- EMAIL_USE_TLS
- EMAIL_PORT
- DEFAULT_FROM_EMAIL
- SECRET_KEY
- DB_NAME=django
- DB_USER=django
- DB_PASS=django
- DB_ENGINE=django.db.backends.postgresql
- DB_HOST=postgres
postgres:
logging:
driver: journald
image: postgres:13
environment:
- POSTGRES_DB=django
- POSTGRES_USER=django
- POSTGRES_PASSWORD=django
volumes:
- /var/lib/postgresql/data