-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (54 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
54 lines (54 loc) · 1.49 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
services:
keycloak_web1:
image: keycloak/keycloak:latest
container_name: kc-web1
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://keycloakdb1:5432/keycloak
KC_DB_USERNAME: ${KC_DB_USERNAME}
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
KEYCLOAK_ADMIN: ${KC_DB_USERNAME}
KEYCLOAK_ADMIN_PASSWORD: pass
KC_HOSTNAME: localhost
KC_HOSTNAME_PORT: 8080
KC_HOSTNAME_STRICT: 'false'
KC_HOSTNAME_STRICT_HTTPS: 'false'
KC_LOG_LEVEL: debug
KC_METRICS_ENABLED: 'true'
KC_HEALTH_ENABLED: 'true'
KC_PROXY: edge
KC_PROXY_HEADERS: forwarded
command: start-dev
depends_on:
- keycloakdb1
ports:
- '7070:8080'
######################################################
keycloakdb1:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: ${KC_DB_USERNAME}
POSTGRES_PASSWORD: ${KC_DB_PASSWORD}
ports:
- '5432:5432'
######################################################
# Spring Boot App PostgreSQL Database
app_postgres:
image: postgres:15-alpine
container_name: app-postgres-db
restart: unless-stopped
ports:
- "6543:5432"
environment:
POSTGRES_DB: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pass
volumes:
- app_postgres_data:/var/lib/postgresql/data
######################################################
volumes:
postgres_data:
app_postgres_data: