-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerComposeWithPgAdminPostgresqlKeycloak.yml
More file actions
66 lines (66 loc) · 1.64 KB
/
DockerComposeWithPgAdminPostgresqlKeycloak.yml
File metadata and controls
66 lines (66 loc) · 1.64 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
version: '3.9'
networks:
local-development-network:
external: true
volumes:
postgres_data:
driver: local
pgadmin_data:
driver: local
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@development.com
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "15432:80"
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- local-development-network
postgres:
container_name: postgres
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- local-development-network
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:latest
command: [ 'start', ]
volumes:
- ./keycloak.pfx:/app/certs/keycloak.pfx
environment:
KC_HOSTNAME: localhost
KC_HOSTNAME_STRICT: false
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: password
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: password
KC_HTTP_ENABLED: true
KC_HTTPS_KEY_STORE_FILE: /app/certs/keycloak.pfx
KC_HTTPS_KEY_STORE_PASSWORD: password
KC_FEATURES: token-exchange
ports:
- "9000:8080"
- "9443:8443"
depends_on:
postgres:
condition: service_healthy
networks:
- local-development-network