-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.29 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
services:
tubee:
command: "./docker-entrypoint.sh"
container_name: "tubee_app"
depends_on:
- "postgres"
- "celery"
env_file:
- "instance/production.env"
environment:
CONFIG: "production"
image: "tomy0000000/tubee"
restart: "always"
volumes:
- "./instance:/usr/src/tubee/instance"
- "./logs:/usr/src/tubee/logs"
postgres:
container_name: "tubee_db"
env_file:
- "instance/production.env"
image: "postgres:12-alpine"
restart: "always"
volumes:
- "postgres_data:/var/lib/postgresql/data"
celery:
command:
["celery", "--app=celery_worker.celery", "worker", "--loglevel=info"]
container_name: "tubee_celery"
depends_on:
- "rabbitmq"
env_file:
- "instance/production.env"
environment:
CONFIG: "production"
image: "tomy0000000/tubee"
restart: "always"
volumes:
- "./instance:/usr/src/tubee/instance"
- "./logs:/usr/src/tubee/logs"
rabbitmq:
container_name: "tubee_rabbitmq"
hostname: "tubee-rabbitmq"
environment:
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbit consumer_timeout 31622400000"
image: "rabbitmq:3.8"
restart: "always"
volumes:
- "rabbitmq_data:/var/lib/rabbitmq"
volumes:
postgres_data:
rabbitmq_data: