This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (104 loc) · 2.67 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
version: '3'
services:
database:
image: 'mongo'
container_name: 'database'
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
volumes:
- ./database-seeds:/docker-entrypoint-initdb.d:ro
networks:
- private
welcome_service:
image: 'ambystomatidae/welcome-service:latest'
container_name: 'welcome_service'
env_file: ./welcome-service/.env.example
networks:
- private
depends_on:
- database
crosswalks_location_service:
image: 'ambystomatidae/crosswalks-location-service:latest'
container_name: 'crosswalks_location_service'
env_file: ./crosswalks-location-service/.env.example
networks:
- private
restart: on-failure
depends_on:
- database
- rabbit
spws_web_app:
image: 'ambystomatidae/spws-web-app:latest'
container_name: 'spws_web_app'
env_file: ./spws-web-app/.env.example
ports:
- '8080:8080'
networks:
- public
spws:
image: 'ambystomatidae/spws:latest'
container_name: 'spws'
env_file: ./spws/.env.example
ports:
- '3000:3000'
networks:
- private
- public
depends_on:
- database
- welcome_service
- crosswalks_location_service
- crosswalks_logger_service
rabbit:
build:
context: ./
dockerfile: rabbit.Dockerfile
container_name: 'rabbit'
ports:
- '5672:5672' #amqp
- '15672:15672' #http
- '15674:15674' #web-stomp
networks:
- private
- public
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
crosswalks_current_status_service:
image: 'ambystomatidae/crosswalks-current-status-service:latest'
container_name: 'crosswalks_current_status_service'
env_file: './crosswalks-current-status-service/.env.example'
restart: on-failure
networks:
- private
depends_on:
- database
- rabbit
traffic_light_simulator:
image: 'ambystomatidae/traffic-light-simulator:latest'
container_name: 'traffic_light_simulator'
env_file: ./traffic-light-simulator/.env.example
restart: on-failure
depends_on:
- crosswalks_location_service
- rabbit
networks:
- private
crosswalks_logger_service:
image: 'ambystomatidae/crosswalks-logger-service:latest'
container_name: 'crosswalks_logger_service'
env_file: ./crosswalks-logger-service/.env.example
restart: on-failure
depends_on:
- rabbit
- database
networks:
- private
networks:
private:
driver: bridge
public:
driver: bridge