-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.resources.yml
45 lines (40 loc) · 1.11 KB
/
docker-compose.resources.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
# this is for local use only
services:
postgres:
image: postgres:16
shm_size: 256m
ports:
- "5432:5432"
environment:
POSTGRES_LOG_STATEMENTS: all
POSTGRES_DB: sill
POSTGRES_USER: sill
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pg_password}
volumes:
- ./docker-data:/var/lib/postgresql/data
# To create an easy-to-use interface for PostgreSQL administration,
# you can use the Adminer web interface.
#
adminer:
image: adminer
ports:
- "8080:8080"
keycloak:
image: quay.io/keycloak/keycloak:18.0.2-legacy
container_name: keycloak
environment:
DB_VENDOR: h2
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
PROXY_ADDRESS_FORWARDING: "true"
JAVA_OPTS: -Dkeycloak.profile=preview
KEYCLOAK_IMPORT: /opt/jboss/keycloak/imports/keycloak-dev-realm.json
volumes:
- ./keycloak-dev-realm.json:/opt/jboss/keycloak/imports/keycloak-dev-realm.json
ports:
- "8081:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8081/auth/" ]
interval: 30s
timeout: 10s
retries: 3