forked from sanger/sequencescape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
39 lines (38 loc) · 975 Bytes
/
docker-compose-dev.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
#
# This compose file only starts the server and jobs worker and will
# use the local mysql database, which is the default configuration for development
# in PSD.
#
version: "3.3"
services:
sequencescape_server:
build: .
image: sequencescape_local_image
environment:
- DBHOST=host.docker.internal
- DBPORT=3306
- RESET_DATABASE=$RESET_DATABASE
entrypoint: "bash -c ./entrypoint.sh"
ports:
- "3000:3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 4
volumes:
- ".:/code"
sequencescape_worker:
image: sequencescape_local_image
depends_on:
- sequencescape_server
environment:
- DBHOST=host.docker.internal
- DBPORT=3306
entrypoint: "bash -c 'bundle exec rake jobs:work'"
healthcheck:
test: "ps -ef | grep -q jobs"
interval: 10s
retries: 5
volumes:
- ".:/code"