-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
60 lines (52 loc) · 1011 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
56
57
58
59
version: '3.5'
volumes:
nginx-shared:
services:
nginx:
image: nginx:1-alpine
hostname: nginx
ports:
- "8000:8000"
volumes:
- ./docker/nginx/safe_service.conf:/etc/nginx/nginx.conf:ro
- nginx-shared:/nginx
depends_on:
- web
redis:
image: redis:7-alpine
ports:
- "6379:6379"
db:
image: postgres:13-alpine
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgres
web:
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
depends_on:
- db
- redis
working_dir: /app
ports:
- "8888:8888"
volumes:
- nginx-shared:/nginx
command: docker/web/run_web.sh
worker: &worker
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
depends_on:
- db
- redis
command: docker/web/celery/worker/run.sh
scheduler:
<<: *worker
command: docker/web/celery/scheduler/run.sh