-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack_pass.yml
95 lines (89 loc) · 2.44 KB
/
stack_pass.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
version: '3.1'
services:
CbTsp_mongo:
image: ghcr.io/ride2rail/mongo:3.6.8
#ports:
# - "${MONGO_PORT}:27017"
expose:
- ${MONGO_PORT}
volumes:
- ./mongo-data:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: CbTspRootUser
MONGO_INITDB_ROOT_PASSWORD: CbTspRootPassword
MONGO_INITDB_DATABASE: socialcardb
networks:
cbtsp_net:
ipv4_address: ${MONGO_IP}
CbTsp_backend:
image: ghcr.io/ride2rail/cbtsp_backend:latest
#ports:
# - "${BACKEND_PORT}:5000"
expose:
- ${BACKEND_PORT}
restart: unless-stopped
environment:
MONGO_HOST: ${MONGO_IP}
MONGO_USERNAME: CbTspSctUser
MONGO_PASSWORD: CbTspScPassword
networks:
cbtsp_net:
ipv4_address: ${BACKEND_IP}
depends_on:
- CbTsp_mongo
CbTsp_planner:
image: ghcr.io/ride2rail/cbtsp_planner:latest
#ports:
# - "${PLANNER_PORT}:8080"
expose:
- ${PLANNER_PORT}
volumes:
- ./planner-data:/app/base/graphs/trenitalia
restart: unless-stopped
environment:
JAVA_OPTS: "-Xmx4G"
networks:
cbtsp_net:
ipv4_address: ${PLANNER_IP}
depends_on:
- CbTsp_mongo
CbTsp_director:
image: ghcr.io/ride2rail/cbtsp_director:latest
ports:
- "127.0.0.1:${DIRECTOR_PORT}:8080"
volumes:
- ./director-data/application.properties:/app/application.properties:ro
- ./director-data/CbtspDirector-0.9.9b.jar:/app/CbtspDirector.jar
restart: unless-stopped
environment:
BACKEND_HOST: ${BACKEND_IP}
BACKEND_PORT: ${BACKEND_PORT}
PLANNER_HOST: ${PLANNER_IP}
PLANNER_PORT: ${PLANNER_PORT}
MONGO_HOST: ${MONGO_IP}
MONGO_PORT: ${MONGO_PORT}
networks:
cbtsp_net:
ipv4_address: ${DIRECTOR_IP}
depends_on:
- CbTsp_mongo
- CbTsp_planner
- CbTsp_backend
command: ["./wait-for-it.sh", "10.5.0.4:8080", "--strict", "--", "./run.sh"]
networks:
cbtsp_net:
driver: bridge
ipam:
config:
- subnet: ${DOCKER_SUBNET}
# mongo-express:
# image: mongo-express
# restart: always
# ports:
# - 8081:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: example
# ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/.9*-