-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 823 Bytes
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
version: '3.5'
services:
db:
image: postgres:15.1
volumes:
- database_volume:/var/lib/postgresql/data
networks:
- database_network
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
redis:
image: redis:7.0.8
networks:
- redis_network
django:
build:
context: .
dockerfile: Dockerfile
args:
- DJANGO_SECRET_KEY
depends_on:
- db
- redis
command: gunicorn appname.wsgi -c gunicorn.cfg.py
volumes:
- ./_app:/usr/src/app
networks:
- database_network
- redis_network
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=0
- DJANGO_SECRET_KEY
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
database_volume:
networks:
database_network:
redis_network: