-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
74 lines (66 loc) · 1.42 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
version: "3.9"
services:
smee:
restart: always
env_file:
- ./.env
environment:
- TASK_QUEUE_SHORT=devtasks
- TASK_QUEUE_LONG=devtasks_long
build:
context: .
dockerfile: smee/Dockerfile
rq-worker:
build:
context: .
dockerfile: workers/Dockerfile
environment:
- TASK_QUEUE_SHORT=devtasks
- TASK_QUEUE_LONG=devtasks_long
- WORKER_TASK_QUEUE=devtasks
env_file:
- ./.env
deploy:
replicas: 1
rq-long-worker:
build:
context: .
dockerfile: workers/Dockerfile
environment:
- TASK_QUEUE_SHORT=devtasks
- TASK_QUEUE_LONG=devtasks_long
- WORKER_TASK_QUEUE=devtasks_long
env_file:
- ./.env
deploy:
replicas: 1
rq-server:
env_file:
- ./.env
image: redis:alpine
expose:
- ${REDIS_PORT}
volumes:
- redis-data:/data
- redis-conf:/usr/local/etc/redis/redis.conf
spackbot:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
# For development so restart updates server
volumes:
# Required for spackbot to have permission to push
# comment this out if you can't generate
- ./id_spackbot:/root/.ssh/id_rsa
- ./id_spackbot.pub:/root/.ssh/id_rsa.pub
# includes private key
- ./spackbot:/app/spackbot
env_file:
- ./.env
links:
- smee
volumes:
redis-data:
redis-conf: