-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (68 loc) · 1.32 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.9'
services:
web:
build: .
command: ["gunicorn", "--bind", ":8000", "serverside.wsgi:application"]
volumes:
- .:/app
- media_volume:/app/media/
ports:
- "8000:8000"
depends_on:
- db
- redis
env_file:
- .env
networks:
- serverside-network
db:
image: postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
- serverside-network
celery-worker:
build: .
command: ["celery", "-A", "serverside", "worker", "--loglevel=info"]
volumes:
- .:/app
depends_on:
- db
- redis
env_file:
- .env
networks:
- serverside-network
redis:
image: "redis:alpine"
ports:
- "6379:6379"
networks:
- serverside-network
daphne:
build: .
command: daphne -b 0.0.0.0 -p 8001 serverside.asgi:application
volumes:
- .:/app
ports:
- "8001:8001"
depends_on:
- db
# - web
- redis
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=serverside.settings
networks:
- serverside-network
volumes:
db_data:
media_volume:
networks:
serverside-network:
driver: bridge