-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction-compose.yml
198 lines (188 loc) · 4.17 KB
/
production-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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
version: "3.7"
services:
xgds:
image: xgds-subsea:current
hostname: xgds-subsea
depends_on:
- mariadb
- couchdb
- redis
# ===================================
# if you want to develop locally,
# uncomment the four lines below, making sure to run:
# export XGDS_WORKING_DIRECTORY=/path/to/xgds
# ===================================
volumes:
- ${XGDS_HOME_DIRECTORY}:/root
- usr-local:/usr/local
- ${XGDS_DATA_DIRECTORY}:${XGDS_DATA_DIRECTORY}
networks:
- xgds-docker-net
ports:
- target: 13060 # HER
published: 13060
protocol: udp
mode: host
- target: 13069 # NAV
published: 13069
protocol: udp
mode: host
- target: 13065 # TEM
published: 13065
protocol: udp
mode: host
- target: 13064 # CTD
published: 13064
protocol: udp
mode: host
- target: 13067 # EVENT
published: 13067
protocol: udp
mode: host
- target: 13077 # CHAT
published: 13077
protocol: udp
mode: host
- target: 13078 # GRABHD
published: 13078
protocol: udp
mode: host
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 5
window: 60s
placement:
constraints:
- node.hostname == ${LOCAL_DOCKER_HOST}
mariadb:
image: mariadb:latest
hostname: mariadb-subsea
environment:
MYSQL_ROOT_PASSWORD: xgds
MYSQL_DATABASE: xgds_subsea
volumes:
- mariadb-data:/var/lib/mysql
- /usr/local/mysql/conf:/etc/mysql
- /usr/local/mysql/log:/var/log/mysql
ports:
- "3306:3306"
networks:
- xgds-docker-net
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 5
window: 60s
placement:
constraints:
- node.hostname == ${LOCAL_DOCKER_HOST}
geoserver:
image: xgds-geoserver:current
hostname: geoserver-subsea
volumes:
- /usr/local/geoserver/data_dir:/usr/share/geoserver/data_dir
networks:
- xgds-docker-net
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 5
window: 60s
placement:
constraints:
- node.hostname == ${LOCAL_DOCKER_HOST}
owa:
image: owa:current
hostname: owa
volumes:
- owa-data:/var/www/html
networks:
- xgds-docker-net
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 5
window: 60s
placement:
constraints:
- node.hostname == ${LOCAL_DOCKER_HOST}
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
depends_on:
- mariadb
redis:
image: redis:5-alpine
hostname: redis
volumes:
- redis-data:/data
networks:
- xgds-docker-net
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 5
window: 60s
placement:
constraints:
- node.hostname == ${LOCAL_DOCKER_HOST}
couchdb:
image: couchdb:latest
hostname: couchdb-subsea
volumes:
- type: volume
source: couchdb-data
target: /opt/couchdb/data
volume:
nocopy: false
- type: volume
source: couchdb-config
target: /opt/couchdb/etc
volume:
nocopy: false
ports:
- "5984:5984"
networks:
- xgds-docker-net
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 5
window: 60s
placement:
constraints:
- node.hostname == ${LOCAL_DOCKER_HOST}
volumes:
couchdb-data:
labels:
persistent: 1
couchdb-config:
labels:
persistent: 1
redis-data:
labels:
persistent: 1
geoserver-data:
labels:
persistent: 1
mariadb-data:
labels:
persistent: 1
usr-local:
labels:
persistent: 1
owa-data:
labels:
persistent: 1
networks:
xgds-docker-net:
external: true