Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
Mikhail Ivanov | 0af84f5 | 2018-07-27 11:41:07 +0400 | [diff] [blame] | 3 | docker_keycloak_server_replicas: 1 |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 4 | docker_keycloak_proxy_replicas: 1 |
| 5 | docker_image_keycloak_server: jboss/keycloak:3.4.2.Final |
Mikhail Ivanov | 0af84f5 | 2018-07-27 11:41:07 +0400 | [diff] [blame] | 6 | docker_image_keycloak_proxy: jboss/keycloak-proxy:3.4.2.Final |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 7 | keycloak_bind_port: ${_param:haproxy_keycloak_bind_port} |
| 8 | keycloak_proxy_bind_port: ${_param:haproxy_keycloak_proxy_bind_port} |
Mikhail Ivanov | 0af84f5 | 2018-07-27 11:41:07 +0400 | [diff] [blame] | 9 | # Initial admin support |
| 10 | keycloak_admin_username: admin |
| 11 | keycloak_admin_password: password |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 12 | docker: |
| 13 | client: |
| 14 | stack: |
| 15 | keycloak: |
Mikhail Ivanov | 0af84f5 | 2018-07-27 11:41:07 +0400 | [diff] [blame] | 16 | environment: |
| 17 | KEYCLOAK_USER: ${_param:keycloak_admin_username} |
| 18 | KEYCLOAK_PASSWORD: ${_param:keycloak_admin_password} |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 19 | 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 | |