-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (61 loc) · 1.64 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# SPDX-FileCopyrightText: NOI Techpark <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
version: "3.4"
services:
keycloak:
build:
context: ./
dockerfile: infrastructure/docker/keycloak/Dockerfile
target: dev
environment:
KC_LOG_LEVEL: info
KC_CACHE_STACK: udp
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KC_HOSTNAME_STRICT: 'false'
KC_HTTP_ENABLED: 'true'
KC_PROXY: 'passthrough'
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
volumes:
- ./themes/sankt-virtual:/opt/keycloak/themes/sankt-virtual
- ./themes/noiV2:/opt/keycloak/themes/noiV2
- ./native-s3-ping/target/native-s3-ping-jar-with-dependencies.jar:/opt/keycloak/providers/native-s3-ping-jar-with-dependencies.jar
- ./registration-event-listener/target/registration-event-listener.jar:/opt/keycloak/providers/registration-event-listener.jar
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
interval: 20s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
- postgres
ports:
- 8080:8080
networks:
- internal
- authentication
postgres:
image: postgres:12
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
ports:
- 5432:5432
networks:
- internal
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
networks:
- internal
networks:
authentication:
external: true
internal:
external: false