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 |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 5 | keycloak_bind_port: ${_param:haproxy_keycloak_bind_port} |
| 6 | keycloak_proxy_bind_port: ${_param:haproxy_keycloak_proxy_bind_port} |
Mikhail Ivanov | 0af84f5 | 2018-07-27 11:41:07 +0400 | [diff] [blame] | 7 | # Initial admin support |
| 8 | keycloak_admin_username: admin |
| 9 | keycloak_admin_password: password |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 10 | docker: |
| 11 | client: |
| 12 | stack: |
| 13 | keycloak: |
Mikhail Ivanov | 0af84f5 | 2018-07-27 11:41:07 +0400 | [diff] [blame] | 14 | environment: |
| 15 | KEYCLOAK_USER: ${_param:keycloak_admin_username} |
| 16 | KEYCLOAK_PASSWORD: ${_param:keycloak_admin_password} |
Adam Tengler | 306a188 | 2018-10-23 18:23:41 +0000 | [diff] [blame] | 17 | KEYCLOAK_IMPORT: "/app/realms.json" |
Mikhail Ivanov | be16a31 | 2018-05-24 00:28:56 +0400 | [diff] [blame] | 18 | 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 | |