forked from DataBiosphere/job-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-compose.yml
64 lines (64 loc) · 2.19 KB
/
common-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
version: '2.1'
services:
rebuild-swagger:
image: java
volumes:
- ./:/base
entrypoint: ["/bin/bash", "-c", "cd base && /base/scripts/rebuild_swagger.sh"]
jmui:
build:
context: ui
dockerfile: Dockerfile.dev
volumes:
# Only mount a whitelist of top-level /ui files/directories; specifically
# node_modules must not be included here. Mount only files required to run
# the dev server. Anything required to install dependencies (npm install)
# should instead be added via the Dockerfile. Updating dependencies
# requires use of the slower docker-compose build.
- ./scripts:/scripts
- ./ui/src:/ui/src
- ./ui/tsconfig.json:/ui/tsconfig.json
- ./ui/tslint.json:/ui/tslint.json
- ./ui/.angular-cli.json:/ui/.angular-cli.json
- ./api:/ui/api
dsub:
# Flags to gunicorn:
# http://docs.gunicorn.org/en/stable/run.html#commonly-used-arguments
command: ["-b", ":8190", "--reload"]
environment:
- PATH_PREFIX=/api/v1
# Avoid writing .pyc files back to the volume. Files generated this way
# have restricted permissions set which cause errors on subsequent docker
# builds.
- GUNICORN_CMD_ARGS=${GUNICORN_CMD_ARGS:-"--workers=5"}
- PYTHONDONTWRITEBYTECODE=1
volumes:
# Mount the python source so that code changes don't require rebuilding
# the image. Changes to requirements.txt will still require rebuilds.
- ./api:/app/api
- ./scripts:/scripts
- ./servers/dsub/jobs:/app/jobs
ports:
- 8190:8190
cromwell:
command: ["-b", ":8190", "-t", "60"]
environment:
- PATH_PREFIX=/api/v1
- CROMWELL_CREDENTIALS=/app/jobs/config.json
- CAPABILITIES_CONFIG=/app/jobs/capabilities_config.json
- CROMWELL_URL=${CROMWELL_URL}
- GUNICORN_CMD_ARGS=${GUNICORN_CMD_ARGS:-"--workers=5"}
- PYTHONDONTWRITEBYTECODE=1
volumes:
- ./api:/app/api
- ./scripts:/scripts
- ./servers/cromwell/jobs:/app/jobs
ports:
- 8190:8190
jobs-proxy:
# Child services must have links named "jmui", "jmapi".
image: nginx
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf
ports:
- 4200:4200