-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
159 lines (150 loc) · 3.29 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
services:
web:
image: "resgridllc/resgridwebcore:latest"
ports:
- "5151:80"
env_file:
- .env
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.51
depends_on:
- api
- events
- db
- redis
- rabbitmq
- worker
- mongodb
environment:
- WAIT_HOSTS=db:1433,redis:6379,rabbitmq:15672,api:80,mongodb:27017
- WAIT_TIMEOUT=300
api:
image: "resgridllc/resgridwebservices:latest"
ports:
- "5152:80"
env_file:
- .env
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.52
depends_on:
- events
- db
- redis
- rabbitmq
- worker
- mongodb
environment:
- WAIT_HOSTS=db:1433,redis:6379,rabbitmq:15672,events:80,mongodb:27017
- WAIT_TIMEOUT=300
events:
image: "resgridllc/resgridwebevents:latest"
ports:
- "5153:80"
env_file:
- .env
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.53
depends_on:
- db
- redis
- rabbitmq
environment:
- WAIT_HOSTS=db:1433,redis:6379,rabbitmq:15672
- WAIT_AFTER=120
- WAIT_TIMEOUT=300
worker:
image: "resgridllc/resgridworkersconsole:latest"
env_file:
- .env
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.54
depends_on:
- db
- redis
- rabbitmq
- mongodb
environment:
- WAIT_HOSTS=db:1433,redis:6379,rabbitmq:15672,mongodb:27017
- WAIT_AFTER=90
- WAIT_TIMEOUT=180
db:
ports:
- "1433:1433"
networks:
rgmain:
ipv4_address: 172.16.193.55
build: ./db
user: root
environment:
- SA_PASSWORD=Resgrid123!!
- ACCEPT_EULA=Y
- MSSQL_PID=Express
volumes:
- ./docker-data/sql/data:/var/opt/mssql/data
- ./docker-data/sql/log:/var/opt/mssql/log
- ./docker-data/sql/backup:/var/opt/mssql/backup
redis:
image: "redis:alpine"
command: redis-server --save 60 1 --loglevel warning
ports:
- "6379:6379"
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.56
rabbitmq:
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=resgrid
- RABBITMQ_DEFAULT_PASS=Resgrid321!
ports:
- "5160:15672"
- "5159:5672"
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.57
mongodb:
image: mongo:4.4.18
ports:
- 27017:27017
restart: always
networks:
rgmain:
ipv4_address: 172.16.193.59
environment:
- MONGO_INITDB_DATABASE=resgrid
- MONGO_INITDB_ROOT_USERNAME=resgridUser
- MONGO_INITDB_ROOT_PASSWORD=Resgrid123!!
volumes:
- ./mongo-entrypoint:/docker-entrypoint-initdb.d
- ./docker-data/mongo/db:/data/configdb
- ./docker-data/mongo/configdb:/data/db
caddy:
image: caddy:2.0.0-alpine
restart: always
env_file:
- .env
ports:
- 80:80
- 443:443
networks:
rgmain:
ipv4_address: 172.16.193.60
volumes:
- ./docker-data/caddy/:/data
- ./docker-data/caddy/Caddyfile:/etc/caddy/Caddyfile
networks:
rgmain:
ipam:
driver: default
config:
- subnet: 172.16.193.0/24