-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
105 lines (91 loc) · 2.85 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3.6"
services:
keycloak:
image: jboss/keycloak:8.0.2
env_file:
- ./docker/keycloak.env
networks:
auth:
aliases:
- auth.local
default:
volumes:
- valuya-dev_certs:/certs
- ./docker/cli/base-config.cli:/opt/jboss/startup-scripts/base-config.cli
- ./docker/cli/ssl-auth-config.cli:/opt/jboss/startup-scripts/ssl-auth-config.cli
- ./docker/cli/theme-config.cli:/opt/jboss/startup-scripts/theme-config.cli
- ./docker/keycloak-db-password:/var/run/secrets/db-password
- ./docker/keycloak-admin-password:/var/run/secrets/keycloak-admin-password
- ./docker/keycloak-auth-truststore.p12:/opt/jboss/keycloak/auth-truststore.p12
- ./keycloak-beid-authenticator-spi/target/keycloak-beid-authenticator-spi.jar:/opt/jboss/keycloak/providers/beid-authenticator-spi.jar
- ./keycloak-testtheme/target/testtheme.jar:/opt/jboss/keycloak/standalone/deployments/testtheme.jar
ports:
- 8443:8443
- 8787:8787
keycloak-db:
image: mariadb:10
env_file:
- ./docker/keycloak-db.env
networks:
- default
volumes:
- db-data:/var/lib/mysql
- ./docker/keycloak-db-password:/var/run/secrets/db-password
- ./docker/keycloak-db-root-password:/var/run/secrets/db-root-password
backend:
image: keycloaktest-backend
environment:
- THORNTAIL_HTTPS_ONLY=true
- KEYSTORE_PATH=/certs/authbackend.local.p12
- KEYSTORE_PASSWORD=password
- KEY_ALIAS=authbackend.local
ports:
- 8444:8443
- 8787:8787
volumes:
- valuya-dev_certs:/certs
networks:
auth:
# Frontend: ng serve from src dir for now
make_auth_cert:
image: docker.valuya.be/openssl:3
environment:
- KEYSTORE_PASSWORD=password
- CERT_CN=auth.local
command: '/create-certificate.sh'
volumes:
- valuya-dev_certs:/etc/ssl/selfsigned
make_backend_cert:
image: docker.valuya.be/openssl:3
environment:
- KEYSTORE_PASSWORD=password
- CERT_CN=authbackend.local
command: '/create-certificate.sh'
volumes:
- valuya-dev_certs:/etc/ssl/selfsigned
make_frontend_cert:
image: docker.valuya.be/openssl:3
environment:
- KEYSTORE_PASSWORD=password
- CERT_CN=authfrontend.local
command: '/create-certificate.sh'
volumes:
- valuya-dev_certs:/etc/ssl/selfsigned
make_truststore:
image: docker.valuya.be/openssl:3
environment:
- TRUSTSTORE_NAME=keycloak-auth-truststore.p12
- TRUSTSTORE_ADD_BELGIAN_ROOTS=true
- TRUSTSTORE_CERT_FILES=/etc/ssl/selfsigned/ca/root-ca.pem
- TRUSTSTORE_PASSWORD=password
command: '/create-truststore.sh'
volumes:
- valuya-dev_certs:/etc/ssl/selfsigned
- ./docker:/etc/ssl/truststores
networks:
auth:
default:
volumes:
db-data:
valuya-dev_certs:
external: true