-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
79 lines (74 loc) · 2.11 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
services:
db:
image: ghcr.io/mtes-mct/monitorfish/monitorfish-database:pg16-ts2.14.2-postgis3.4.2
container_name: monitorfish_database
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=monitorfishdb
volumes:
- db-data:/var/lib/postgresql/data
- ./infra/dev/database/enable_pg_query_stats_and_history.sh:/docker-entrypoint-initdb.d/init-user-db.sh
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 1s
retries: 30
flyway:
image: flyway/flyway
command: migrate -password=postgres -schemas=public -user=postgres -url=jdbc:postgresql://db:5432/monitorfishdb
volumes:
- ../../backend/src/main/resources/db/:/flyway/sql
depends_on:
db:
condition: service_healthy
geoserver:
image: kartoza/geoserver:2.18.0
restart: unless-stopped
ports:
- 8081:8080
links:
- "db:db"
volumes:
- geoserver-data:/opt/geoserver/data_dir
depends_on:
db:
condition: service_healthy
geoserver-monitorenv-stubs:
image: rodolpheche/wiremock
ports:
- 8081:8080
volumes:
- ./frontend/cypress/mappings:/home/wiremock/mappings
keycloak:
container_name: monitorfish_keycloak
image: quay.io/keycloak/keycloak:23.0.0
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_HOSTNAME_STRICT=false
- KC_HTTP_ENABLED=true
- PROXY_ADDRESS_FORWARDING=true
- KC_PROXY=edge
- KC_PROXY_HEADERS=forwarded
- KC_HEALTH_ENABLED=true
ports:
- "8085:8080"
volumes:
- ./infra/dev/keycloak:/opt/keycloak/data/import
command:
- start-dev
- --import-realm
healthcheck:
test: [ "CMD-SHELL",
"exec 3<>/dev/tcp/localhost/8080 && echo -e 'GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q '200 OK'" ]
interval: 30s
timeout: 5s
retries: 20
volumes:
geoserver-data:
driver: local
db-data:
name: db-data-16