blob: c712fda7c55c825c0211466fb9c1df82e60b5698 [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
5 docker_image_keycloak_server: jboss/keycloak:3.4.2.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}
Mikhail Ivanovbe16a312018-05-24 00:28:56 +040019 service:
20 keycloak-server:
21 image: ${_param:docker_image_keycloak_server}
22 deploy:
23 replicas: ${_param:docker_keycloak_server_replicas}
24 restart_policy:
25 condition: any
26 ports:
27 - ${_param:haproxy_keycloak_exposed_port}:${_param:keycloak_bind_port}
28 volumes:
29 - /srv/volumes/keycloak/server/:/app
30 keycloak-proxy:
31 image: ${_param:docker_image_keycloak_proxy}
32 deploy:
33 replicas: ${_param:docker_keycloak_proxy_replicas}
34 restart_policy:
35 condition: any
36 ports:
37 - ${_param:haproxy_keycloak_proxy_exposed_port}:${_param:keycloak_proxy_bind_port}
38 volumes:
39 - /srv/volumes/keycloak/proxy/proxy.json:/opt/jboss/conf/proxy.json
40 network:
41 default:
42 external:
43 name: keycloak_backend
44