-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.dev.yml
66 lines (65 loc) · 1.35 KB
/
docker-compose.dev.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
services:
tubee:
build: .
command:
- "watchmedo"
- "auto-restart"
- "--directory=./"
- "--pattern=*.py"
- "--recursive"
- "--"
- "flask"
- "--debug"
- "run"
- "--host"
- "0.0.0.0"
- "--port"
- "8000"
- "--no-reload"
container_name: "tubee_app"
depends_on:
- "postgres"
- "celery"
env_file:
- "instance/development.env"
ports:
- "8000:8000"
volumes:
- ".:/usr/src/tubee"
postgres:
container_name: "tubee_db"
env_file:
- "instance/development.env"
image: "postgres:12-alpine"
ports:
- "5432:5432"
volumes:
- "postgres_data:/var/lib/postgresql/data"
celery:
build: .
command:
- "celery"
- "--app=celery_worker.celery"
- "worker"
- "--loglevel=info"
container_name: "tubee_celery"
depends_on:
- "rabbitmq"
env_file:
- "instance/development.env"
volumes:
- ".:/usr/src/tubee"
rabbitmq:
container_name: "tubee_rabbitmq"
hostname: "tubee-rabbitmq"
environment:
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbit consumer_timeout 31622400000"
image: "rabbitmq:3.8"
ports:
- "5672:5672"
- "15672:15672"
volumes:
- "rabbitmq_data:/var/lib/rabbitmq"
volumes:
rabbitmq_data:
postgres_data: