-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
184 lines (168 loc) · 3.66 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
version: '3'
x-jms-base: &jms-base
image: jaci/jms:latest
restart: unless-stopped
environment:
- REDIS_URI=redis://redis:6379/0
- RABBITMQ_URI=amqp://rabbitmq:5672/%2f
- UNIFI_URI=https://10.0.100.7:8443
volumes:
- /etc/localtime:/etc/localtime:ro
depends_on:
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
networks:
jms:
services:
jms-arena:
<<: *jms-base
command: jms-arena
# depends_on:
# - jms-networking
jms-backup:
<<: *jms-base
command: jms-backup
jms-core:
<<: *jms-base
command: jms-core
jms-electronics:
<<: *jms-base
command: jms-electronics
depends_on:
- jms-arena
cap_add:
- NET_ADMIN
networks:
jms:
jms-ext:
ipv4_address: 10.0.100.6
jms-driverstation:
<<: *jms-base
command: jms-driverstation
depends_on:
- jms-arena
cap_add:
- NET_ADMIN
networks:
jms:
jms-ext:
ipv4_address: 10.0.100.5
jms-networking:
<<: *jms-base
command: jms-networking
depends_on:
unifi:
condition: service_healthy
cap_add:
- NET_ADMIN
networks:
jms:
jms-ext:
ipv4_address: 10.0.100.8
jms-match-logs:
<<: *jms-base
command: jms-match-logs
jms-tba:
<<: *jms-base
command: jms-tba
jms-websocket:
<<: *jms-base
command: jms-websocket
deploy:
replicas: 1
networks:
jms:
jms-ui:
image: jaci/jms-ui:latest
restart: unless-stopped
deploy:
replicas: 1
networks:
jms:
nginx:
image: jaci/jms-nginx:latest
restart: unless-stopped
depends_on:
- jms-ui
- jms-websocket
ports:
- 80:80
networks:
jms:
unifi:
image: lscr.io/linuxserver/unifi-controller:7.4.162
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MEM_LIMIT=1024
- MEM_STARTUP=1024
volumes:
- type: bind
source: "${JMS_DATA_DIR:-./data}/unifi"
target: /config
# ports:
# - 8443:8443
# - 3478:3478/udp
# - 10001:10001/udp
# - 8080:8080
# - 1900:1900/udp #optional
# - 8843:8843 #optional
# - 8880:8880 #optional
# - 6789:6789 #optional
# - 5514:5514/udp #optional
restart: unless-stopped
healthcheck:
test: curl --max-time 5 -kILs --fail https://localhost:8443
interval: 10s
timeout: 10s
retries: 5
networks:
jms-ext:
ipv4_address: 10.0.100.7
# jms: # This can't be here - Unifi gets confused with the default route otherwise. But it's ok, we can still reach it.
# Support
redis:
image: redis/redis-stack:latest
restart: unless-stopped
volumes:
- type: bind
source: "${JMS_DATA_DIR:-./data}/redis"
target: /data
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 10s
timeout: 10s
retries: 5
ports:
- "6379:6379"
- "8001:8001"
networks:
jms:
rabbitmq:
image: rabbitmq:3-management-alpine
restart: unless-stopped
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 10s
retries: 5
networks:
jms:
networks:
jms:
driver: bridge
jms-ext:
driver: macvlan
driver_opts:
parent: ${JMS_INTERFACE}
ipam:
config:
- subnet: "10.0.100.0/24"
ip_range: "10.0.100.0/24"
gateway: "10.0.100.1"