blob: 7dcb88ab5179d53976344cea2ad25209e99bc93c [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
9 keycloak_admin_password: password
Mikhail Ivanovbe16a312018-05-24 00:28:56 +040010 docker:
11 client:
12 stack:
13 keycloak:
Mikhail Ivanov0af84f52018-07-27 11:41:07 +040014 environment:
15 KEYCLOAK_USER: ${_param:keycloak_admin_username}
16 KEYCLOAK_PASSWORD: ${_param:keycloak_admin_password}
Adam Tengler306a1882018-10-23 18:23:41 +000017 KEYCLOAK_IMPORT: "/app/realms.json"
Mikhail Ivanovbe16a312018-05-24 00:28:56 +040018 service:
19 keycloak-server:
20 image: ${_param:docker_image_keycloak_server}
21 deploy:
22 replicas: ${_param:docker_keycloak_server_replicas}
23 restart_policy:
24 condition: any
25 ports:
26 - ${_param:haproxy_keycloak_exposed_port}:${_param:keycloak_bind_port}
27 volumes:
28 - /srv/volumes/keycloak/server/:/app
29 keycloak-proxy:
30 image: ${_param:docker_image_keycloak_proxy}
31 deploy:
32 replicas: ${_param:docker_keycloak_proxy_replicas}
33 restart_policy:
34 condition: any
35 ports:
36 - ${_param:haproxy_keycloak_proxy_exposed_port}:${_param:keycloak_proxy_bind_port}
37 volumes:
38 - /srv/volumes/keycloak/proxy/proxy.json:/opt/jboss/conf/proxy.json
39 network:
40 default:
41 external:
42 name: keycloak_backend
43