-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
137 lines (129 loc) · 4.4 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# You need to set many environment variables for this to work.
services:
mongodb:
image: mongo
ports:
- 37017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
logging:
driver: none
clockwork_web-dev:
image: clockwork_web
depends_on:
- mongodb
working_dir: /clockwork
volumes:
- ./clockwork_web:/clockwork/clockwork_web
- ./test_config.toml:/clockwork/test_config.toml
ports:
- ${EXTERNAL_FLASK_RUN_PORT}:${FLASK_RUN_PORT}
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml
FLASK_RUN_PORT: ${FLASK_RUN_PORT}
command:
flask run --host=0.0.0.0
clockwork_web_test:
image: clockwork_web_test
depends_on:
- mongodb
user: "${CLOCKWORK_UID}:${CLOCKWORK_GID}"
working_dir: /clockwork
volumes:
- ./clockwork_web:/clockwork/clockwork_web
- ./clockwork_web_test:/clockwork/clockwork_web_test
- ./test_common:/clockwork/test_common
- ./test_config.toml:/clockwork/test_config.toml
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml
FLASK_RUN_PORT: ${FLASK_RUN_PORT}
clockwork_tools_test:
image: clockwork_tools_test
depends_on:
- mongodb
- clockwork_web-dev
user: "${CLOCKWORK_UID}:${CLOCKWORK_GID}"
working_dir: /clockwork
volumes:
- ./clockwork_tools:/clockwork/clockwork_tools
- ./clockwork_tools_test:/clockwork/clockwork_tools_test
- ./test_common:/clockwork/test_common
- ./test_config.toml:/clockwork/test_config.toml
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml
MONGODB_DATABASE_NAME: "clockwork"
MONGODB_CONNECTION_STRING: ${MONGODB_CONNECTION_STRING}
clockwork_tools_test_HOST: "clockwork_web-dev"
clockwork_tools_test_PORT: ${FLASK_RUN_PORT}
clockwork_tools_test_EMAIL: ${clockwork_tools_test_EMAIL}
clockwork_tools_test_CLOCKWORK_API_KEY: ${clockwork_tools_test_CLOCKWORK_API_KEY}
slurm_state_test:
image: slurm_state_test
depends_on:
- mongodb
user: "${CLOCKWORK_UID}:${CLOCKWORK_GID}"
working_dir: /clockwork
volumes:
- ./slurm_state:/clockwork/slurm_state
- ./slurm_state_test:/clockwork/slurm_state_test
- ./test_config.toml:/clockwork/test_config.toml
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml
clockwork_dev:
image: clockwork_dev
depends_on:
- mongodb
user: "${CLOCKWORK_UID}:${CLOCKWORK_GID}"
working_dir: /clockwork
ports:
- ${EXTERNAL_FLASK_RUN_PORT}:${FLASK_RUN_PORT}
volumes:
- ./clockwork_frontend_test:/clockwork/clockwork_frontend_test
- ./clockwork_tools:/clockwork/clockwork_tools
- ./clockwork_tools_test:/clockwork/clockwork_tools_test
- ./clockwork_web:/clockwork/clockwork_web
- ./clockwork_web_test:/clockwork/clockwork_web_test
- ./slurm_state:/clockwork/slurm_state
- ./slurm_state_test:/clockwork/slurm_state_test
- ./scripts:/clockwork/scripts
- ./scripts_test:/clockwork/scripts_test
- ./test_common:/clockwork/test_common
- ./test_config.toml:/clockwork/test_config.toml
command: bash
stdin_open: true
tty: true
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml
clockwork_tools_test_HOST: "localhost"
clockwork_tools_test_PORT: ${FLASK_RUN_PORT}
clockwork_tools_test_EMAIL: ${clockwork_tools_test_EMAIL}
clockwork_tools_test_CLOCKWORK_API_KEY: ${clockwork_tools_test_CLOCKWORK_API_KEY}
clockwork_scripts:
image: clockwork_scripts
container_name: cw-scripts
build:
context: ./
dockerfile: scripts/Dockerfile
depends_on:
- mongodb
user: "${CLOCKWORK_UID}:${CLOCKWORK_GID}"
working_dir: /clockwork
volumes:
- ./slurm_report:/clockwork/tmp/slurm_report
- ./test_common:/clockwork/test_common
- ./test_config.toml:/clockwork/test_config.toml
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml
scripts_test:
image: scripts_test
depends_on:
- mongodb
user: "${CLOCKWORK_UID}:${CLOCKWORK_GID}"
working_dir: /clockwork
volumes:
- ./scripts:/clockwork/scripts
- ./scripts_test:/clockwork/scripts_test
- ./test_config.toml:/clockwork/test_config.toml
environment:
CLOCKWORK_CONFIG: /clockwork/test_config.toml