-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
114 lines (99 loc) · 2.19 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
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
version: '3.1'
services:
green-way-web-frontend:
image: luigivess/green-way-web-frontend:v1
ports:
- "8081:80"
networks:
- greenway
depends_on:
- green-way-backend
# <---------->
green-way-backend:
image: redy1908/green-way-backend:v1
ports:
- "8080:8080"
networks:
- greenway
depends_on:
- green-way-postgis
- keycloak
- keycloak-db
- green-way-osrm-standard
- green-way-osrm-elevation
# <---------->
keycloak:
image: quay.io/keycloak/keycloak:23.0.7
command: start-dev --import-realm
environment:
KC_DB: postgres
KC_DB_URL_HOST: keycloak-db
KC_DB_URL_DATABASE: postgres
KC_DB_PASSWORD: postgres
KC_DB_USERNAME: postgres
KC_DB_SCHEMA: public
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
volumes:
- ./KeyCloak:/opt/keycloak/data/import
ports:
- "8090:8080"
depends_on:
keycloak-db:
condition: service_healthy
networks:
- greenway
# <---------->
keycloak-db:
image: postgres:16.2
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres
healthcheck:
test: "exit 0"
ports:
- "5432:5432"
networks:
- greenway
volumes:
- keycloak_data:/var/lib/postgresql/keycloak/data
# <---------->
green-way-postgis:
image: redy1908/green-way-postgis:v1
environment:
POSTGRES_PASSWORD: postgis
POSTGRES_DB: postgis
POSTGRES_USER: postgis
ports:
- "5433:5432"
networks:
- greenway
volumes:
- postgis_data:/var/lib/postgresql/postgis/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgis" ]
interval: 15s
timeout: 5s
retries: 10
# <---------->
green-way-osrm-standard:
image: redy1908/green-way-osrm-standard:v1
ports:
- "5000:5000"
networks:
- greenway
# <---------->
green-way-osrm-elevation:
image: redy1908/green-way-osrm-elevation:v1
ports:
- "5001:5000"
networks:
- greenway
# <---------->
volumes:
postgis_data:
keycloak_data:
networks:
greenway:
driver: bridge