2019-03-15 19:49:29 +00:00
|
|
|
- name: create gluu volume folders
|
|
|
|
file:
|
2019-03-15 20:22:46 +00:00
|
|
|
name: "{{ gluu.volume_folder }}/{{ volume }}"
|
2019-03-15 19:49:29 +00:00
|
|
|
state: directory
|
|
|
|
loop:
|
2019-03-15 20:22:46 +00:00
|
|
|
- "config-init/db"
|
2019-03-15 19:49:29 +00:00
|
|
|
- "consul/data"
|
|
|
|
- "opendj/config"
|
|
|
|
- "opendj/ldif"
|
|
|
|
- "opendj/logs"
|
|
|
|
- "opendj/db"
|
|
|
|
- "opendj/flag"
|
|
|
|
- "opendj/backup"
|
|
|
|
- "oxauth/custom"
|
2019-03-21 08:41:14 +00:00
|
|
|
- "oxauth/custom/pages"
|
2019-03-15 19:49:29 +00:00
|
|
|
- "oxauth/custom/static"
|
|
|
|
- "oxauth/lib/ext"
|
|
|
|
- "oxauth/logs"
|
|
|
|
- "oxtrust/custom/pages"
|
|
|
|
- "oxtrust/lib/ext"
|
|
|
|
- "oxtrust/logs"
|
|
|
|
- "shared-shibboleth-idp"
|
2019-08-31 16:43:14 +00:00
|
|
|
- "vault/config:/vault/config"
|
|
|
|
- "vault/data:/vault/data"
|
|
|
|
- "vault/logs:/vault/logs"
|
2019-03-15 20:00:08 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: "volume"
|
2019-03-15 19:49:29 +00:00
|
|
|
|
|
|
|
- name: set up gluu
|
|
|
|
docker_service:
|
|
|
|
project_name: gluu
|
|
|
|
pull: yes
|
|
|
|
definition:
|
|
|
|
version: "2.3"
|
|
|
|
services:
|
|
|
|
consul:
|
|
|
|
image: consul
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: consul
|
2019-03-15 19:49:29 +00:00
|
|
|
command: agent -server -bootstrap -ui
|
|
|
|
hostname: consul-1
|
|
|
|
environment:
|
2019-03-21 08:41:14 +00:00
|
|
|
- CONSUL_BIND_INTERFACE=eth0
|
2019-03-15 19:49:29 +00:00
|
|
|
- CONSUL_CLIENT_INTERFACE=eth0
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2019-03-15 20:22:46 +00:00
|
|
|
- "{{ gluu.volume_folder }}/consul:/consul/data"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
labels:
|
|
|
|
- "SERVICE_IGNORE=yes"
|
|
|
|
|
2019-08-31 16:43:14 +00:00
|
|
|
vault:
|
|
|
|
container_name: vault
|
|
|
|
image: vault:1.0.1
|
|
|
|
command: vault server -config=/vault/config
|
|
|
|
volumes:
|
|
|
|
- "{{ gluu.volume_folder }}/vault/config:/vault/config"
|
|
|
|
- "{{ gluu.volume_folder }}/vault/data:/vault/data"
|
|
|
|
- "{{ gluu.volume_folder }}/vault/logs:/vault/logs"
|
|
|
|
- "{{ gluu.volume_folder }}/vault/vault_gluu_policy.hcl:/vault/config/policy.hcl"
|
|
|
|
- "{{ gluu.volume_folder }}/vault/gcp_kms_stanza.hcl:/vault/config/stanza.hcl"
|
|
|
|
- "{{ gluu.volume_folder }}/vault/gcp_kms_creds.json:/vault/config/creds.json"
|
|
|
|
cap_add:
|
|
|
|
- IPC_LOCK
|
|
|
|
environment:
|
|
|
|
- VAULT_REDIRECT_INTERFACE=eth0
|
|
|
|
- VAULT_CLUSTER_INTERFACE=eth0
|
|
|
|
- VAULT_ADDR=http://0.0.0.0:8200
|
|
|
|
- VAULT_LOCAL_CONFIG={"backend":{"consul":{"address":"consul:8500","path":"vault/"}},"listener":{"tcp":{"address":"0.0.0.0:8200","tls_disable":1}}}
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- consul
|
|
|
|
labels:
|
|
|
|
- "SERVICE_IGNORE=yes"
|
|
|
|
|
2019-03-15 19:49:29 +00:00
|
|
|
registrator:
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: registrator
|
2019-03-15 19:49:29 +00:00
|
|
|
image: gluufederation/registrator:dev
|
|
|
|
command: registrator -internal -cleanup -resync 30 -retry-attempts 5 -retry-interval 10 consul://consul:8500
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- consul
|
|
|
|
|
|
|
|
nginx:
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: nginx
|
|
|
|
image: gluufederation/nginx:3.1.5_02
|
2019-03-15 19:49:29 +00:00
|
|
|
environment:
|
2019-08-31 16:43:14 +00:00
|
|
|
- GLUU_CONFIG_CONSUL_HOST=consul
|
|
|
|
- GLUU_SECRET_VAULT_HOST=vault
|
2019-03-15 19:49:29 +00:00
|
|
|
- VIRTUAL_HOST="{{ gluu.domain }}"
|
|
|
|
- LETSENCRYPT_HOST="{{ gluu.domain }}"
|
|
|
|
- LETSENCRYPT_EMAIL="{{ letsencrypt_email }}"
|
|
|
|
ports:
|
2019-08-31 16:43:14 +00:00
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "external_services"
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "SERVICE_IGNORE=yes"
|
|
|
|
|
|
|
|
ldap:
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: ldap
|
|
|
|
image: gluufederation/opendj:3.1.5_02
|
2019-03-15 19:49:29 +00:00
|
|
|
environment:
|
2019-08-31 16:43:14 +00:00
|
|
|
- GLUU_CONFIG_CONSUL_HOST=consul
|
|
|
|
- GLUU_SECRET_VAULT_HOST=vault
|
2019-03-15 19:49:29 +00:00
|
|
|
- GLUU_LDAP_INIT=true
|
|
|
|
- GLUU_LDAP_INIT_HOST=ldap
|
|
|
|
- GLUU_LDAP_INIT_PORT=1636
|
|
|
|
- GLUU_OXTRUST_CONFIG_GENERATION=true
|
|
|
|
- GLUU_CACHE_TYPE=NATIVE_PERSISTENCE
|
|
|
|
# - GLUU_CACHE_TYPE=REDIS # don't forget to enable redis service
|
|
|
|
# - GLUU_REDIS_URL=redis:6379
|
|
|
|
# - GLUU_REDIS_TYPE=STANDALONE
|
|
|
|
# the value must match service name `ldap` because other containers
|
|
|
|
# use this value as LDAP hostname
|
|
|
|
- GLUU_CERT_ALT_NAME=ldap
|
|
|
|
volumes:
|
2019-03-15 20:22:46 +00:00
|
|
|
- "{{ gluu.volume_folder }}/opendj/config:/opt/opendj/config"
|
|
|
|
- "{{ gluu.volume_folder }}/opendj/ldif:/opt/opendj/ldif"
|
|
|
|
- "{{ gluu.volume_folder }}/opendj/logs:/opt/opendj/logs"
|
|
|
|
- "{{ gluu.volume_folder }}/opendj/db:/opt/opendj/db"
|
|
|
|
- "{{ gluu.volume_folder }}/opendj/flag:/flag"
|
|
|
|
- "{{ gluu.volume_folder }}/opendj/backup:/opt/opendj/bak"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "SERVICE_IGNORE=yes"
|
|
|
|
|
|
|
|
oxauth:
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: oxauth
|
|
|
|
image: gluufederation/oxauth:3.1.5_02
|
2019-03-15 19:49:29 +00:00
|
|
|
environment:
|
2019-08-31 16:43:14 +00:00
|
|
|
- GLUU_CONFIG_CONSUL_HOST=consul
|
|
|
|
- GLUU_SECRET_VAULT_HOST=consul
|
2019-03-15 19:49:29 +00:00
|
|
|
- GLUU_LDAP_URL=ldap:1636
|
|
|
|
extra_hosts:
|
2019-08-31 16:43:14 +00:00
|
|
|
- "{{ gluu.domain }}:85.235.225.231"
|
2019-03-15 19:49:29 +00:00
|
|
|
volumes:
|
2019-03-15 20:22:46 +00:00
|
|
|
- "{{ gluu.volume_folder }}/oxauth/custom/pages:/opt/gluu/jetty/oxauth/custom/pages"
|
|
|
|
- "{{ gluu.volume_folder }}/oxauth/custom/static:/opt/gluu/jetty/oxauth/custom/static"
|
|
|
|
- "{{ gluu.volume_folder }}/oxauth/lib/ext:/opt/gluu/jetty/oxauth/lib/ext"
|
|
|
|
- "{{ gluu.volume_folder }}/oxauth/logs:/opt/gluu/jetty/oxauth/logs"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
mem_limit: 1536M
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "SERVICE_NAME=oxauth"
|
|
|
|
- "SERVICE_8080_CHECK_HTTP=/oxauth/.well-known/openid-configuration"
|
|
|
|
- "SERVICE_8080_CHECK_INTERVAL=15s"
|
|
|
|
- "SERVICE_8080_CHECK_TIMEOUT=5s"
|
|
|
|
|
|
|
|
oxtrust:
|
2019-08-31 16:43:14 +00:00
|
|
|
image: gluufederation/oxtrust:3.1.5_02
|
2019-03-15 19:49:29 +00:00
|
|
|
environment:
|
2019-08-31 16:43:14 +00:00
|
|
|
- GLUU_CONFIG_CONSUL_HOST=consul
|
|
|
|
- GLUU_SECRET_VAULT_HOST=vault
|
2019-03-15 19:49:29 +00:00
|
|
|
- GLUU_LDAP_URL=ldap:1636
|
|
|
|
- GLUU_OXAUTH_BACKEND=oxauth:8080
|
|
|
|
extra_hosts:
|
2019-08-31 16:43:14 +00:00
|
|
|
- "{{ gluu.domain }}:85.235.225.231"
|
2019-03-15 19:49:29 +00:00
|
|
|
container_name: oxtrust
|
|
|
|
volumes:
|
2019-03-15 20:22:46 +00:00
|
|
|
- "{{ gluu.volume_folder }}/oxtrust/custom/pages:/opt/gluu/jetty/identity/custom/pages"
|
|
|
|
- "{{ gluu.volume_folder }}/oxtrust/custom/static:/opt/gluu/jetty/identity/custom/static"
|
|
|
|
- "{{ gluu.volume_folder }}/oxtrust/lib/ext:/opt/gluu/jetty/identity/lib/ext"
|
|
|
|
- "{{ gluu.volume_folder }}/oxtrust/logs:/opt/gluu/jetty/identity/logs"
|
|
|
|
- "{{ gluu.volume_folder }}/shared-shibboleth-idp:/opt/shared-shibboleth-idp"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
mem_limit: 1536M
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "SERVICE_NAME=oxtrust"
|
|
|
|
- "SERVICE_8080_CHECK_HTTP=/identity/restv1/scim-configuration"
|
|
|
|
- "SERVICE_8080_CHECK_INTERVAL=15s"
|
|
|
|
- "SERVICE_8080_CHECK_TIMEOUT=5s"
|
|
|
|
|
|
|
|
oxshibboleth:
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: oxshibboleth
|
|
|
|
image: gluufederation/oxshibboleth:3.1.5_02
|
2019-03-15 19:49:29 +00:00
|
|
|
environment:
|
2019-08-31 16:43:14 +00:00
|
|
|
- GLUU_CONFIG_CONSUL_HOST=consul
|
|
|
|
- GLUU_SECRET_VAULT_HOST=vault
|
2019-03-15 19:49:29 +00:00
|
|
|
- GLUU_LDAP_URL=ldap:1636
|
|
|
|
extra_hosts:
|
2019-03-15 20:00:08 +00:00
|
|
|
- "{{gluu.domain}}:85.235.225.231"
|
2019-03-15 19:49:29 +00:00
|
|
|
volumes:
|
2019-03-15 20:22:46 +00:00
|
|
|
- "{{ gluu.volume_folder }}/volumes/shared-shibboleth-idp:/opt/shared-shibboleth-idp"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
mem_limit: 1024M
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "SERVICE_NAME=oxshibboleth"
|
|
|
|
- "SERVICE_8086_CHECK_HTTP=/idp"
|
|
|
|
- "SERVICE_8086_CHECK_INTERVAL=15s"
|
|
|
|
- "SERVICE_8086_CHECK_TIMEOUT=5s"
|
|
|
|
|
|
|
|
oxpassport:
|
2019-08-31 16:43:14 +00:00
|
|
|
container_name: oxpassport
|
|
|
|
image: gluufederation/oxpassport:3.1.5_02
|
2019-03-15 19:49:29 +00:00
|
|
|
environment:
|
2019-08-31 16:43:14 +00:00
|
|
|
- GLUU_CONFIG_CONSUL_HOST=consul
|
|
|
|
- GLUU_SECRET_VAULT_HOST=vault
|
2019-03-15 19:49:29 +00:00
|
|
|
- GLUU_LDAP_URL=ldap:1636
|
|
|
|
# required by wait-for-it script
|
|
|
|
- GLUU_OXAUTH_BACKEND=oxauth:8080
|
|
|
|
- GLUU_OXTRUST_BACKEND=oxtrust:8080
|
|
|
|
extra_hosts:
|
|
|
|
- "{{gluu.domain}}:85.235.225.231"
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
- "gluu"
|
2019-03-15 19:49:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "SERVICE_NAME=oxpassport"
|
|
|
|
- "SERVICE_8090_CHECK_HTTP=/passport"
|
|
|
|
- "SERVICE_8090_CHECK_INTERVAL=15s"
|
2019-03-15 21:01:10 +00:00
|
|
|
- "SERVICE_8090_CHECK_TIMEOUT=5s"
|
2019-03-21 08:41:14 +00:00
|
|
|
|
2019-03-15 21:01:10 +00:00
|
|
|
networks:
|
|
|
|
external_services:
|
|
|
|
external: true
|
|
|
|
gluu:
|
2019-03-21 08:41:14 +00:00
|
|
|
name: "gluu"
|