-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
184 lines (173 loc) · 4.86 KB
/
docker-compose.yml
File metadata and controls
184 lines (173 loc) · 4.86 KB
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
# Copyright (C) 2022 B3Partners B.V.
#
# SPDX-License-Identifier: MIT
#
# Only to be used for development and testing purposes.
#
name: 'tailormap-ci'
volumes:
postgres-data:
postgis-data:
sqlserver-data:
oracle-data:
solr-data:
prometheus-data:
networks:
tailormap-ci:
name: tailormap-ci
services:
postgres:
container_name: postgres
image: postgis/postgis:18-3.6
command:
- "-c"
- "max_connections=200"
environment:
TZ: Europe/Amsterdam
POSTGRES_USER: tailormap
POSTGRES_PASSWORD: tailormap
POSTGRES_DB: tailormap
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
networks:
- tailormap-ci
healthcheck:
test: pg_isready -U tailormap
interval: 15s
timeout: 5s
retries: 5
start_period: 45s
restart: unless-stopped
postgis:
container_name: postgis
image: docker.b3p.nl/tailormap/tailormap-data_postgis:snapshot
environment:
TZ: Europe/Amsterdam
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fa6efb5b-075b-4b7b-aab0-96108cd77e76}
GEODATA_PASSWORD: ${GEODATA_PASSWORD:-980f1c8A-25933b2}
volumes:
- postgis-data:/var/lib/postgresql
ports:
- "127.0.0.1:54322:5432"
networks:
- tailormap-ci
healthcheck:
interval: 1m
timeout: 5s
retries: 5
start_period: 1m
test: pg_isready -U geodata
restart: unless-stopped
sqlserver:
container_name: sqlserver
image: docker.b3p.nl/tailormap/tailormap-data_sqlserver:snapshot
environment:
TZ: Europe/Amsterdam
SA_PASSWORD: ${SA_PASSWORD:-fa6efb5b-075b-4b7b-aab0-96108cd77e76}
GEODATA_PASSWORD: ${GEODATA_PASSWORD:-980f1c8A-25933b2}
ACCEPT_EULA: Y
volumes:
- sqlserver-data:/var/opt/mssql
ports:
- "127.0.0.1:1433:1433"
networks:
- tailormap-ci
healthcheck:
interval: 1m
timeout: 5s
retries: 5
start_period: 1m
test: /opt/mssql-tools18/bin/sqlcmd -No -U sa -P $$SA_PASSWORD -Q "select 1" -b -o /dev/null
restart: unless-stopped
oracle:
container_name: oracle
image: docker.b3p.nl/tailormap/tailormap-data_oracle:snapshot
environment:
TZ: Europe/Amsterdam
# Note Oracle has default maximum password length of 16!
ORACLE_PASSWORD: ${ORACLE_PASSWORD:-fa6efb5b-075b-4b}
# this user is created in FREEPDB1, not in XE
APP_USER: "geodata"
APP_USER_PASSWORD: ${GEODATA_PASSWORD:-980f1c8A-25933b2}
GEODATA_PASSWORD: ${GEODATA_PASSWORD:-980f1c8A-25933b2}
volumes:
- oracle-data:/opt/oracle/oradata
ports:
- "127.0.0.1:1521:1521"
networks:
- tailormap-ci
labels:
traefik.enable: false
healthcheck:
interval: 1m
timeout: 5s
retries: 5
start_period: 1m
test: healthcheck.sh
restart: unless-stopped
solr:
container_name: solr
depends_on:
- postgis
- oracle
- sqlserver
image: ghcr.io/tailormap/solr:snapshot
environment:
TZ: Europe/Amsterdam
SOLR_OPTS: '$SOLR_OPTS -Dsolr.environment=dev,label=Tailormap+Development,color=#6236FF'
SOLR_CLOUD_STARTUP_DELETE_UNKNOWN_CORES_ENABLED: true
SOLR_MODE: user-managed
volumes:
- solr-data:/var/solr
ports:
- "127.0.0.1:8983:8983"
networks:
- tailormap-ci
restart: unless-stopped
command:
- solr-precreate
- tailormap
healthcheck:
test: 'curl -s http://localhost:8983/solr/tailormap/admin/ping | grep -q "OK" || exit 1'
start_period: 60s
interval: 15s
timeout: 5s
retries: 3
prometheus:
container_name: prometheus
image: prom/prometheus:v3.11.3
environment:
TZ: Europe/Amsterdam
depends_on:
- solr
volumes:
- ./compose-config-files/prometheus.yaml:/prometheus.yaml:ro
- prometheus-data:/prometheus
ports:
- "127.0.0.1:9090:9090"
extra_hosts:
- host.docker.internal:host-gateway
networks:
- tailormap-ci
restart: unless-stopped
command:
- --enable-feature=exemplar-storage
- --config.file=/prometheus.yaml
# see: https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
# keep data for 91 days or 100MB, whichever comes first
- --storage.tsdb.retention.time=91d
- --storage.tsdb.retention.size=100MB
- --log.level=debug
# to be able to reload the config file without restarting the container, development-only!
- --web.enable-lifecycle
# to be able to delete/cleanup metrics on request we need the admin API
# see: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
- --web.enable-admin-api
healthcheck:
test: 'wget --server-response --spider http://localhost:9090/query?query=up || exit 1'
start_period: 60s
interval: 15s
timeout: 5s
retries: 3