-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-prod.yml
153 lines (153 loc) · 4.65 KB
/
docker-compose-prod.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
services:
shogun-print:
extends:
file: ./common-services.yml
service: shogun-print
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:8080/ || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
shogun-geoserver:
extends:
file: ./common-services.yml
service: shogun-geoserver
image: docker.osgeo.org/geoserver:2.25.3
environment:
# in some environments the X-Forward-Proto is not picked up correctly, with this variable it can be set manually
PROXY_BASE_URL: ${GEOSERVER_PROXY_BASE_URL}
restart: unless-stopped
healthcheck:
test: curl --fail "http://localhost:8080/geoserver/web" || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
shogun-postgis:
extends:
file: ./common-services.yml
service: shogun-postgis
restart: unless-stopped
shogun-keycloak:
extends:
file: ./common-services.yml
service: shogun-keycloak
restart: unless-stopped
shogun-nginx:
extends:
file: ./common-services.yml
service: shogun-nginx
volumes:
# makes sure that certificates exist in the environment or use a different image that already contains the certificates
- ./shogun-nginx/ssl/private/localhost.crt:/etc/nginx/ssl/private/localhost.crt
- ./shogun-nginx/ssl/private/localhost.key:/etc/nginx/ssl/private/localhost.key
- ./shogun-nginx/prod/default.conf:/etc/nginx/templates/default.conf.template
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
shogun-admin:
extends:
file: ./common-services.yml
service: shogun-admin
image: docker-public.terrestris.de/terrestris/shogun-admin:15.2.3
restart: unless-stopped
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1 || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
shogun-client:
extends:
file: ./common-services.yml
service: shogun-client
image: docker-public.terrestris.de/terrestris/shogun-gis-client:8.11.1
restart: unless-stopped
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
# shogun-client-plugins:
# extends:
# file: ./common-services.yml
# service: shogun-client-plugins
# image: your_plugin_image:1.0.0
# restart: unless-stopped
# healthcheck:
# test: wget --no-verbose --tries=1 --spider http://localhost || exit 1
# interval: 10s
# retries: 5
# start_period: 5s
# timeout: 10s
shogun-boot:
extends:
file: ./common-services.yml
service: shogun-boot
image: docker-public.terrestris.de/shogun/shogun-boot:21.1.2
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '0.50'
memory: 1G
environment:
JAVA_TOOL_OPTIONS: "-Xmx512m -Dspring.config.location=/config/application.yml -Dlog4j2.configurationFile=/config/log4j2.yml"
restart: unless-stopped
healthcheck:
test: wget --no-verbose --tries=1 --spider "http://localhost:8080" || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
# shogun-gs-interceptor:
# extends:
# file: ./common-services.yml
# service: shogun-gs-interceptor
# image: docker-public.terrestris.de/shogun/shogun-gs-interceptor:20.4.1
# restart: unless-stopped
# healthcheck:
# test: wget --no-verbose --tries=1 --spider "http://localhost:8081/shogun-gs-interceptor/swagger-ui/index.html" || exit 1
# interval: 10s
# retries: 5
# start_period: 5s
# timeout: 10s
shogun-solr:
extends:
file: ./common-services.yml
service: shogun-solr
restart: unless-stopped
healthcheck:
test: curl --fail "http://localhost:8983" || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
shogun-gis-client-docs:
extends:
file: ./common-services.yml
service: shogun-gis-client-docs
healthcheck:
test: wget --no-verbose --tries=1 --spider "http://localhost" || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
shogun-admin-client-docs:
extends:
file: ./common-services.yml
service: shogun-admin-client-docs
healthcheck:
test: wget --no-verbose --tries=1 --spider "http://localhost" || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s