-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (58 loc) · 1.14 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
volumes:
nginx-shared:
services:
nginx:
image: nginx:alpine
hostname: nginx
ports:
- "8000:8000"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- nginx-shared:/nginx
depends_on:
- web
web:
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
working_dir: /app
ports:
- "8888:8888"
volumes:
- nginx-shared:/nginx
command: docker/web/run_web.sh
redis:
image: redis:alpine
ports:
- "6379:6379"
command:
- --appendonly yes
rabbitmq:
image: rabbitmq:alpine
ports:
- "5672:5672"
db:
image: postgres:14-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
indexer-worker: &worker
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
environment:
RUN_MIGRATIONS: 1
WORKER_QUEUES: "default,events"
depends_on:
- db
- rabbitmq
command: docker/web/celery/worker/run.sh
scheduler:
<<: *worker
command: docker/web/celery/scheduler/run.sh