forked from OCA/oca-github-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (65 loc) · 1.44 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
version: '2'
services:
queue:
image: redis:4-alpine
restart: unless-stopped
volumes:
- ./data/queue:/data
command: redis-server --appendonly yes --auto-aof-rewrite-min-size 64mb --auto-aof-rewrite-percentage 10
bot:
build: .
links:
- queue
ports:
- 8080:8080
user: "${UID}:${GID}"
env_file:
- ./.env
volumes:
- ./data/cache:/app/run/.cache
- ./data/simple-index:/app/run/simple-index
restart: unless-stopped
command: python -m oca_github_bot
depends_on:
- queue
worker:
build: .
links:
- queue
user: "${UID}:${GID}"
env_file:
- ./.env
volumes:
- ./data/cache:/app/run/.cache
- ./data/simple-index:/app/run/simple-index
restart: unless-stopped
command: celery --app=oca_github_bot.queue.app worker --concurrency=2 --loglevel=INFO
depends_on:
- queue
beat:
build: .
links:
- queue
user: "${UID}:${GID}"
env_file:
- ./.env
volumes:
- ./data/cache:/app/run/.cache
- ./data/simple-index:/app/run/simple-index
restart: unless-stopped
command: celery --app=oca_github_bot.queue.app beat
depends_on:
- queue
monitor:
build: .
links:
- queue
ports:
- 5555:5555
user: "${UID}:${GID}"
env_file:
- ./.env
restart: unless-stopped
command: celery --app=oca_github_bot.queue.app flower
depends_on:
- queue