Skip to content

Commit 98cb069

Browse files
committed
rebase master...
1 parent a6b8a6c commit 98cb069

1 file changed

Lines changed: 94 additions & 75 deletions

File tree

docker-compose.yml

Lines changed: 94 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ volumes:
22
postgresql_data:
33
ldap_data:
44
ldap_config:
5+
ldap_run:
56
geoserver_geodata:
67
geoserver_datadir:
78
geoserver_tiles:
@@ -20,6 +21,28 @@ secrets:
2021
file: ./secrets/slapd_password.txt
2122

2223
services:
24+
caddy:
25+
image: caddy:2.8-alpine
26+
ports:
27+
- "80:80"
28+
- "443:443"
29+
- "127.0.0.1:2019:2019"
30+
environment:
31+
- CADDY_ADMIN=0.0.0.0:2019
32+
volumes:
33+
- ./resources/ssl:/etc/certs:ro
34+
- ./resources/caddy/etc:/etc/caddy:ro
35+
- ./resources/caddy/data:/data/caddy
36+
- ./resources/static:/usr/share/caddy/static:ro
37+
restart: always
38+
healthcheck:
39+
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:2019/reverse_proxy/upstreams >/dev/null || exit 1"]
40+
interval: 30s
41+
timeout: 10s
42+
retries: 10
43+
env_file:
44+
- ./envs/.envs-common
45+
2346
database:
2447
image: georchestra/database:latest
2548
env_file:
@@ -36,6 +59,8 @@ services:
3659
restart_policy:
3760
condition: on-failure
3861
window: 15m
62+
ports:
63+
- 5432:5432
3964
volumes:
4065
- postgresql_data:/var/lib/postgresql
4166
restart: always
@@ -72,7 +97,7 @@ services:
7297
restart: always
7398

7499
gateway:
75-
image: georchestra/gateway:latest
100+
image: georchestra/gateway:latest-debug
76101
depends_on:
77102
- database
78103
volumes:
@@ -95,24 +120,17 @@ services:
95120
timeout: 10s
96121
retries: 10
97122
depends_on:
98-
ldap:
99-
condition: service_healthy
100-
database:
101-
condition: service_healthy
102-
rabbitmq:
103-
condition: service_healthy
123+
- ldap
124+
- database
104125
volumes:
105-
- georchestra_datadir:/etc/georchestra
126+
- ./config:/etc/georchestra
106127
environment:
107-
- JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
108-
- XMS=256M
109-
- XMX=1G
128+
- JAVA_OPTIONS=-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF -Xms256m -Xmx512m
110129
env_file:
111-
- .envs-common
112-
- .envs-ldap
113-
- .envs-rabbitmq
114-
- .envs-database-georchestra
115-
- .envs-hosts
130+
- ./envs/.envs-common
131+
- ./envs/.envs-ldap
132+
- ./envs/.envs-database-georchestra
133+
- ./envs/.envs-hosts
116134
restart: always
117135

118136
geoserver:
@@ -170,69 +188,70 @@ services:
170188
- ./envs/.envs-elastic
171189
restart: always
172190

173-
elasticsearch:
174-
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
175-
deploy:
176-
resources:
177-
limits:
178-
cpus: "0"
179-
memory: "1g"
180-
volumes:
181-
- esdata:/usr/share/elasticsearch/data
182-
healthcheck:
183-
test: ["CMD-SHELL", "curl -u elastic:$$ELASTIC_PASSWORD -s -f http://localhost:9200/_cat/health >/dev/null || exit 1"]
184-
interval: 30s
185-
timeout: 10s
186-
retries: 10
187-
env_file:
188-
- ./envs/.envs-elastic
189-
environment:
190-
discovery.type: single-node
191-
ES_JAVA_OPTS: -Xms512m -Xmx512m
192-
restart: always
191+
elasticsearch:
192+
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
193+
deploy:
194+
resources:
195+
limits:
196+
cpus: "0"
197+
memory: "1g"
198+
volumes:
199+
- esdata:/usr/share/elasticsearch/data
200+
healthcheck:
201+
test: ["CMD-SHELL", "curl -u elastic:$$ELASTIC_PASSWORD -s -f http://localhost:9200/_cat/health >/dev/null || exit 1"]
202+
interval: 30s
203+
timeout: 10s
204+
retries: 10
205+
env_file:
206+
- ./envs/.envs-elastic
207+
environment:
208+
discovery.type: single-node
209+
ES_JAVA_OPTS: -Xms512m -Xmx512m
210+
restart: always
193211

194-
kibana:
195-
scale: 0
196-
image: docker.elastic.co/kibana/kibana:8.14.3
197-
depends_on:
198-
- elasticsearch
199-
healthcheck:
200-
test: [ "CMD-SHELL", "curl -s -f http://localhost:5601/api/status >/dev/null || exit 1" ]
201-
interval: 30s
202-
timeout: 10s
203-
retries: 10
204-
env_file:
205-
- ./envs/.envs-hosts
206-
- ./envs/.envs-elastic
207-
volumes:
208-
- ./resources/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
209-
restart: always
212+
kibana:
213+
deploy:
214+
replicas: 0
215+
image: docker.elastic.co/kibana/kibana:8.14.3
216+
depends_on:
217+
- elasticsearch
218+
healthcheck:
219+
test: ["CMD-SHELL", "curl -s -f http://localhost:5601/api/status >/dev/null || exit 1"]
220+
interval: 30s
221+
timeout: 10s
222+
retries: 10
223+
env_file:
224+
- ./envs/.envs-hosts
225+
- ./envs/.envs-elastic
226+
volumes:
227+
- ./resources/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
228+
restart: always
210229

211-
ogc-api-records:
212-
image: geonetwork/gn-cloud-ogc-api-records-service:4.4.7-0
213-
depends_on:
214-
- geonetwork
215-
- database
216-
- elasticsearch
217-
environment:
218-
LANG: en_US.UTF-8
219-
SERVER_SERVLET_CONTEXT_PATH: /ogc-api-records
220-
SPRING_CONFIG_LOCATION: file:///etc/georchestra/geonetwork/microservices/ogc-api-records/config.yml
221-
SPRING_PROFILES_ACTIVE: standalone
222-
JAVA_OPTS: -Dfile.encoding=UTF-8
223-
env_file:
224-
- ./envs/.envs-common
225-
- ./envs/.envs-hosts
226-
- ./envs/.envs-database-georchestra
227-
- ./envs/.envs-elastic
228-
volumes:
229-
- ./config:/etc/georchestra
230-
restart: always
230+
ogc-api-records:
231+
image: geonetwork/gn-cloud-ogc-api-records-service:4.4.7-0
232+
depends_on:
233+
- geonetwork
234+
- database
235+
- elasticsearch
236+
environment:
237+
LANG: en_US.UTF-8
238+
SERVER_SERVLET_CONTEXT_PATH: /ogc-api-records
239+
SPRING_CONFIG_LOCATION: file:///etc/georchestra/geonetwork/microservices/ogc-api-records/config.yml
240+
SPRING_PROFILES_ACTIVE: standalone
241+
JAVA_OPTS: -Dfile.encoding=UTF-8
242+
env_file:
243+
- ./envs/.envs-common
244+
- ./envs/.envs-hosts
245+
- ./envs/.envs-database-georchestra
246+
- ./envs/.envs-elastic
247+
volumes:
248+
- ./config:/etc/georchestra
249+
restart: always
231250

232251
datahub:
233252
image: geonetwork/geonetwork-ui-datahub:latest
234253
healthcheck:
235-
test: [ "CMD-SHELL", "curl -s -f http://localhost:80/datahub/ >/dev/null || exit 1" ]
254+
test: ["CMD-SHELL", "curl -s -f http://localhost:80/datahub/ >/dev/null || exit 1"]
236255
interval: 30s
237256
timeout: 10s
238257
retries: 10
@@ -247,7 +266,7 @@ services:
247266
metadata-editor:
248267
image: geonetwork/geonetwork-ui-metadata-editor:latest
249268
healthcheck:
250-
test: [ "CMD-SHELL", "curl -s -f http://localhost:80/metadata-editor/ >/dev/null || exit 1" ]
269+
test: ["CMD-SHELL", "curl -s -f http://localhost:80/metadata-editor/ >/dev/null || exit 1"]
251270
interval: 30s
252271
timeout: 10s
253272
retries: 10
@@ -262,7 +281,7 @@ services:
262281
mapstore:
263282
image: georchestra/mapstore:latest
264283
healthcheck:
265-
test: [ "CMD-SHELL", "curl -s -f http://localhost:8080/mapstore/configs/config.json >/dev/null || exit 1" ]
284+
test: ["CMD-SHELL", "curl -s -f http://localhost:8080/mapstore/configs/config.json >/dev/null || exit 1"]
266285
interval: 30s
267286
timeout: 10s
268287
retries: 10

0 commit comments

Comments
 (0)