-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yml
65 lines (61 loc) · 1.53 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
#
# Basic version of stack, for Github
#
services:
sequencescape_server:
build: .
image: sequencescape_local_image
depends_on:
- mysql_server
environment:
- DBHOST=mysql_server
- DBPORT=3306
- RESET_DATABASE=$RESET_DATABASE
- PRECOMPILE_ASSETS=${PRECOMPILE_ASSETS:-true}
entrypoint: "bash -c ./entrypoint.sh"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 4
sequencescape_worker:
image: sequencescape_local_image
depends_on:
- sequencescape_server
environment:
- DBHOST=mysql_server
- DBPORT=3306
entrypoint: "bash -c 'bundle exec rake jobs:work'"
healthcheck:
test: "ps -ef | grep -q jobs"
interval: 10s
retries: 5
mysql_server:
image: mysql:8.0
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD="yes"
healthcheck:
test: "/etc/init.d/mysql status"
interval: 30s
retries: 120
rabbitmq_server:
image: rabbitmq:3-management
healthcheck:
test: "rabbitmq-diagnostics -q ping"
interval: 30s
retries: 120
sequencescape_consumer:
image: sequencescape_local_image
depends_on:
- rabbitmq_server
- mysql_server
environment:
- DBHOST=mysql_server
- DBPORT=3306
- RMQHOST=rabbitmq_server
- WARREN_TYPE=broadcast
entrypoint: "bash -c 'bundle exec warren consumer start'"
healthcheck:
test: "ps -ef | grep -q warren"
interval: 10s
retries: 5