-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1017 Bytes
/
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
version: '3.9'
services:
keycloak:
container_name: beercloak
build:
context: .
dockerfile: Dockerfile
ports:
- 18080:8080
- 443:8443
environment:
KC_HTTP_RELATIVE_PATH: /auth
KC_HOSTNAME: id.keycloak.test
KC_HTTPS_CERTIFICATE_FILE: /etc/x509/https/tls.crt
KC_HTTPS_CERTIFICATE_KEY_FILE: /etc/x509/https/tls.key
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: keycloak
KEYCLOAK_IMPORT: /opt/keycloak/imports/beer-realm.json
command: start
volumes:
- /etc/localtime:/etc/localtime:ro
- ./cert.pem:/etc/x509/https/tls.crt
- ./cert-key.pem:/etc/x509/https/tls.key
- "./test/beer-realm.json:/opt/keycloak/imports/beer-realm.json"
networks:
- beernet
maildev:
container_name: maildev
image: maildev/maildev:1.1.0
ports:
- "1080:80"
- "1234:25"
networks:
- beernet
networks:
beernet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.0.0/16