-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.18 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
services:
keycloak:
container_name: keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
ports:
- '8080:8080'
- '9000:9000'
build:
context: .
dockerfile: Dockerfile
depends_on:
- keycloak-db
- external-db
keycloak-db:
container_name: keycloak-db
image: postgres:16-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./scripts/keycloak-db/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
- ./postgresql.conf:/etc/postgresql/postgresql.conf
command: [ "postgres", "-c", "config_file=/etc/postgresql/postgresql.conf" ]
ports:
- "5455:5432"
external-db:
container_name: external-db
image: postgres:16-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./scripts/external-db/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
- ./postgresql.conf:/etc/postgresql/postgresql.conf
command: [ "postgres", "-c", "config_file=/etc/postgresql/postgresql.conf" ]
ports:
- "5456:5432"