-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1 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
version: '3.9'
services:
redis:
image: redis:latest
restart: always
volumes:
- ./redis-data:/data
ports:
- "6391:6381"
postgres:
image: postgres:16
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_MULTIPLE_DATABASES=keycloak:keycloak
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5442:5432"
volumes:
- ./init-postgres:/docker-entrypoint-initdb.d
- ./postgres-data:/var/lib/postgresql/data
postgres-gis:
build:
context: ./postgis
dockerfile: Dockerfile
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5444:5432"
volumes:
- ./postgres-gis-data:/var/lib/postgresql/data
volumes:
redis-data:
driver: local
postgres-data:
driver: local
postgres-gis-data:
driver: local