blob: e613637fb3095cdd8f7ce8031b397b3f080da2af [file] [log] [blame]
Mikhail Ivanovbe16a312018-05-24 00:28:56 +04001parameters:
2 _param:
Mikhail Ivanov0af84f52018-07-27 11:41:07 +04003 docker_keycloak_server_replicas: 1
Mikhail Ivanovbe16a312018-05-24 00:28:56 +04004 docker_keycloak_proxy_replicas: 1
Adam Tengler306a1882018-10-23 18:23:41 +00005 docker_image_keycloak_server: jboss/keycloak:4.5.0.Final
Mikhail Ivanov0af84f52018-07-27 11:41:07 +04006 docker_image_keycloak_proxy: jboss/keycloak-proxy:3.4.2.Final
Mikhail Ivanovbe16a312018-05-24 00:28:56 +04007 keycloak_bind_port: ${_param:haproxy_keycloak_bind_port}
8 keycloak_proxy_bind_port: ${_param:haproxy_keycloak_proxy_bind_port}
Mikhail Ivanov0af84f52018-07-27 11:41:07 +04009 # Initial admin support
10 keycloak_admin_username: admin
11 keycloak_admin_password: password
Mikhail Ivanovbe16a312018-05-24 00:28:56 +040012 docker:
13 client:
14 stack:
15 keycloak:
Mikhail Ivanov0af84f52018-07-27 11:41:07 +040016 environment:
17 KEYCLOAK_USER: ${_param:keycloak_admin_username}
18 KEYCLOAK_PASSWORD: ${_param:keycloak_admin_password}
Adam Tengler306a1882018-10-23 18:23:41 +000019 KEYCLOAK_IMPORT: "/app/realms.json"
Mikhail Ivanovbe16a312018-05-24 00:28:56 +040020 service:
21 keycloak-server:
22 image: ${_param:docker_image_keycloak_server}
23 deploy:
24 replicas: ${_param:docker_keycloak_server_replicas}
25 restart_policy:
26 condition: any
27 ports:
28 - ${_param:haproxy_keycloak_exposed_port}:${_param:keycloak_bind_port}
29 volumes:
30 - /srv/volumes/keycloak/server/:/app
31 keycloak-proxy:
32 image: ${_param:docker_image_keycloak_proxy}
33 deploy:
34 replicas: ${_param:docker_keycloak_proxy_replicas}
35 restart_policy:
36 condition: any
37 ports:
38 - ${_param:haproxy_keycloak_proxy_exposed_port}:${_param:keycloak_proxy_bind_port}
39 volumes:
40 - /srv/volumes/keycloak/proxy/proxy.json:/opt/jboss/conf/proxy.json
41 network:
42 default:
43 external:
44 name: keycloak_backend
45