blob: 0187a082cc5f0ca647c9b5dd1409c5113464ca47 [file] [log] [blame]
Mikhail Ivanovbe16a312018-05-24 00:28:56 +04001parameters:
2 _param:
3 docker_keycloak_server_replicas: 3
4 docker_keycloak_proxy_replicas: 1
5 docker_image_keycloak_server: jboss/keycloak:3.4.2.Final
6 docker_image_keycloak_proxy: jboss/keycloak-proxy:3.4.2.h
7 keycloak_bind_port: ${_param:haproxy_keycloak_bind_port}
8 keycloak_proxy_bind_port: ${_param:haproxy_keycloak_proxy_bind_port}
9 docker:
10 client:
11 stack:
12 keycloak:
13 service:
14 keycloak-server:
15 image: ${_param:docker_image_keycloak_server}
16 deploy:
17 replicas: ${_param:docker_keycloak_server_replicas}
18 restart_policy:
19 condition: any
20 ports:
21 - ${_param:haproxy_keycloak_exposed_port}:${_param:keycloak_bind_port}
22 volumes:
23 - /srv/volumes/keycloak/server/:/app
24 keycloak-proxy:
25 image: ${_param:docker_image_keycloak_proxy}
26 deploy:
27 replicas: ${_param:docker_keycloak_proxy_replicas}
28 restart_policy:
29 condition: any
30 ports:
31 - ${_param:haproxy_keycloak_proxy_exposed_port}:${_param:keycloak_proxy_bind_port}
32 volumes:
33 - /srv/volumes/keycloak/proxy/proxy.json:/opt/jboss/conf/proxy.json
34 network:
35 default:
36 external:
37 name: keycloak_backend
38