-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (63 loc) · 1.23 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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
ports:
- 5432:5432
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
# rabbitmq:
# image: rabbitmq:3-alpine
# ports:
# - 5672:5672
redis:
image: redis:7-alpine
ports:
- 6379:6379
web:
build:
context: .
dockerfile: ./docker/Dockerfile
command: bash -c "chmod +x ./scripts/*.sh && ./scripts/service_start.sh web"
ports:
- 8000:8000
volumes:
- .:/app
env_file:
- .env
depends_on:
- postgres
- redis
# - rabbitmq
worker_beat:
build:
context: .
dockerfile: ./docker/Dockerfile
command: bash -c "chmod +x ./scripts/*.sh && ./scripts/service_start.sh worker_beat"
volumes:
- .:/app
env_file:
- .env
depends_on:
- redis
# - rabbitmq
flower:
build:
context: .
dockerfile: ./docker/Dockerfile
command: celery flower
ports:
- 5555:5555
env_file:
- .env
depends_on:
- redis
# - rabbitmq
- web
- worker_beat
volumes:
db_data: