-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
38 lines (37 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
services:
postgres:
image: postgres:16.1
environment:
POSTGRES_DB: zeiterfassung
POSTGRES_USER: admin_user
POSTGRES_PASSWORD: admin_password
POSTGRES_APP_USER: app_user
POSTGRES_APP_PASSWORD: app_password
ports:
- '5432:5432'
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 3s
timeout: 1s
retries: 5
volumes:
- ./init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh:ro
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- '1025:1025'
- '8025:8025'
keycloak:
image: quay.io/keycloak/keycloak:25.0.6
command: ["start-dev", "--import-realm"]
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HTTP_PORT: '8090'
KC_HOSTNAME_STRICT: 'false'
KC_HOSTNAME_STRICT_HTTPS: 'false'
KC_CACHE: 'local'
ports:
- '8090:8090'
volumes:
- ./docker/keycloak/export:/opt/keycloak/data/import