forked from mwhall/QUOREM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (49 loc) · 1.16 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
version: "3.9"
services:
db:
container_name: db
image: postgres:latest
restart: always
volumes:
- ./docker/persistence/postgresql/:/var/lib/postgresql/data
expose:
- "5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- djangonetwork
django:
build:
context: .
dockerfile: docker/Dockerfile.django
environment:
- DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
- DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
- DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
command: ./docker/django_entrypoint.sh
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
links:
- db:db
networks:
- djangonetwork
redis:
expose:
- "6379"
image: redis:latest
restart: always
networks:
- djangonetwork
networks:
djangonetwork:
driver: bridge