-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (48 loc) · 970 Bytes
/
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
version: '3.8'
services:
web:
build: .
volumes:
- static:/opt/app/static
ports:
- 8000:8000
depends_on:
- db
restart: unless-stopped
db:
image: postgres:15.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- envs/db.env
redis:
image: redis:7.0.8-alpine
celery-beat:
env_file: envs/web.env
build: .
command: celery -A notification_service beat
depends_on:
- db
- redis
restart: unless-stopped
celery-worker:
env_file: envs/web.env
build: .
command: celery -A notification_service worker
depends_on:
- db
- redis
restart: unless-stopped
nginx:
image: nginx:1.21.6-alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- static:/data/static
depends_on:
- web
ports:
- "80:80"
volumes:
static:
postgres_data: