blob: 3598282b1eacaa36728a45effb17db3b78ae8d15 [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
Mikhail Ivanovbe16a312018-05-24 00:28:56 +04005 keycloak_bind_port: ${_param:haproxy_keycloak_bind_port}
6 keycloak_proxy_bind_port: ${_param:haproxy_keycloak_proxy_bind_port}
Mikhail Ivanov0af84f52018-07-27 11:41:07 +04007 # Initial admin support
8 keycloak_admin_username: admin
Mikhail Ivanovbe16a312018-05-24 00:28:56 +04009 docker:
10 client:
11 stack:
12 keycloak:
Mikhail Ivanov0af84f52018-07-27 11:41:07 +040013 environment:
14 KEYCLOAK_USER: ${_param:keycloak_admin_username}
15 KEYCLOAK_PASSWORD: ${_param:keycloak_admin_password}
Adam Tengler306a1882018-10-23 18:23:41 +000016 KEYCLOAK_IMPORT: "/app/realms.json"
Mikhail Ivanovbe16a312018-05-24 00:28:56 +040017 service:
18 keycloak-server:
19 image: ${_param:docker_image_keycloak_server}
20 deploy:
21 replicas: ${_param:docker_keycloak_server_replicas}
22 restart_policy:
23 condition: any
24 ports:
25 - ${_param:haproxy_keycloak_exposed_port}:${_param:keycloak_bind_port}
26 volumes:
27 - /srv/volumes/keycloak/server/:/app
28 keycloak-proxy:
29 image: ${_param:docker_image_keycloak_proxy}
30 deploy:
31 replicas: ${_param:docker_keycloak_proxy_replicas}
32 restart_policy:
33 condition: any
34 ports:
35 - ${_param:haproxy_keycloak_proxy_exposed_port}:${_param:keycloak_proxy_bind_port}
36 volumes:
37 - /srv/volumes/keycloak/proxy/proxy.json:/opt/jboss/conf/proxy.json
38 network:
39 default:
40 external:
41 name: keycloak_backend
42