-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (47 loc) · 1.2 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
# COMPOSE
# ___ ___ ___
# / * \ / * \ / * \
# | * | | * | | * |
# | * | | * | | * |
# \ * / \ * / \ * /
# ‾‾‾ ‾‾‾ ‾‾‾
#
services:
redis:
image: redis
rabbit:
image: rabbitmq:3
healthcheck: # rabbit is a bit slow to startup unlike redis
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 10s
retries: 5
omen:
environment:
- SONG_DIR_PATH=/songs
- REDIS_HOST=redis
- AMQP_URI=amqp://guest:guest@rabbit:5672
build: ./omen
depends_on:
redis:
condition: service_started
rabbit:
condition: service_healthy
ports:
- "4000:4000"
volumes:
- ~/songs:/app/priv/static/songs
venator:
environment:
- SONG_DIR_PATH=/songs
- REDIS_HOST=redis
- AMQP_URI=amqp://guest:guest@rabbit:5672
build: ./venator
depends_on:
redis:
condition: service_started
rabbit:
condition: service_healthy
privileged: true # for selenium
volumes:
- ~/songs:/songs