-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (91 loc) · 1.79 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
redis:
restart: always
image: library/redis:7.2.4-alpine3.19
ports:
- "${REDIS_BIND_PORT}:6379"
networks:
- relohub
volumes:
- redis:/data
mysql:
restart: always
image: mysql:8.0-debian
ports:
- "${DB_BIND_PORT}:3306"
- "${DB_BIND_PORT_2}:33060"
networks:
- relohub
volumes:
- database:/var/lib/mysql
cap_add:
- SYS_NICE
env_file:
- ./docker.env
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=${DB_PASS}
website:
restart: unless-stopped
build:
context: .
container_name: relohub
image: relohub
command: sh run.sh
ports:
- "${RUN_ON}:8000"
networks:
- relohub
volumes:
- media:/app/media
depends_on:
- mysql
- redis
env_file:
- ./docker.env
celery:
restart: unless-stopped
image: relohub
command: celery -A relohub worker -l DEBUG
networks:
- relohub
volumes:
- media:/app/media
depends_on:
- website
env_file:
- ./docker.env
celery-beat:
restart: unless-stopped
image: relohub
command: celery -A relohub beat -l DEBUG
networks:
- relohub
volumes:
- media:/app/media
depends_on:
- celery
env_file:
- ./docker.env
celery-flower:
restart: always
image: relohub
command: celery -A relohub flower --basic_auth=${FLOWER_USERNAME}:${FLOWER_PASSWORD} --auto_refresh=True --url_prefix=flower -l DEBUG
ports:
- "${FLOWER_BIND_PORT}:5555"
networks:
- relohub
depends_on:
- celery
env_file:
- ./docker.env
volumes:
redis:
driver: local
media:
driver: local
database:
driver: local
networks:
relohub:
driver: bridge