-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 1.73 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
version: '3'
services:
app:
build:
context: .
dockerfile: ./packages/backend/Dockerfile
args:
- NODE_ENV=production
container_name: master-project-app
restart: on-failure:3
environment:
USE_HTTPS: ${USE_HTTPS}
NO_CONSOLE_LOGGING: ${NO_CONSOLE_LOGGING}
NO_FILE_LOGGING: ${NO_FILE_LOGGING}
BACKEND_PORT: ${BACKEND_PORT}
WORKER_ACTIVE: ${WORKER_ACTIVE}
WORKER_DELAY: ${WORKER_DELAY}
WORKER_RUN_FILE_PATH: ${WORKER_RUN_FILE_PATH}
CONFIG_PATH: ${CONFIG_PATH}
SIMULATION_PORT: ${SIMULATION_PORT}
URL_METHANATION_001: sim_001
MODERATOR_USERNAME: ${MODERATOR_USERNAME}
MODERATOR_PASSWORD: ${MODERATOR_PASSWORD}
STUDENT_USERNAME: ${STUDENT_USERNAME}
STUDENT_PASSWORD: ${STUDENT_PASSWORD}
networks:
- backend
ports:
- 8080:${BACKEND_PORT}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://app:${BACKEND_PORT}/readiness']
interval: 30s
timeout: 10s
start_period: 10s
start_interval: 5s
retries: 5
command: node ./src/index.js
depends_on:
- sim_001
sim_001:
build:
context: .
dockerfile: ./packages/simulation/Dockerfile
args:
- ENV=production
container_name: master-project-sim_001
restart: on-failure:3
environment:
SIMULATION_PORT: ${SIMULATION_PORT}
networks:
- backend
ports:
- 3001:${SIMULATION_PORT}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://sim_001:${SIMULATION_PORT}/health']
interval: 30s
timeout: 10s
start_period: 10s
start_interval: 5s
retries: 5
command: python3 /app/simulations/methanation/Methanation_local_smart/start.py
networks:
backend: