Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_kqueen_api_replicas: 1 |
| 4 | docker_image_kqueen_api: kqueen/api:v0.18 |
| 5 | docker_image_kqueen_ui: kqueen/ui:v0.8 |
| 6 | kqueen_api_bind_host: kqueen-api |
| 7 | kqueen_api_bind_port: ${_param:haproxy_kqueen_api_bind_port} |
| 8 | kqueen_api_db_host: etcd |
| 9 | kqueen_api_debug: True |
| 10 | kqueen_api_prometheus_whitelist: '172.16.10.0/24' ##REcheck with network |
vnaumov | 61c1a48 | 2018-04-04 11:14:08 +0400 | [diff] [blame] | 11 | kqueen_api_ldap_uri: 'ldap://ldap' |
vnaumov | 02ea504 | 2018-04-11 13:20:26 +0400 | [diff] [blame] | 12 | kqueen_api_ldap_dn: 'cn=admin,dc=example,dc=org' |
| 13 | kqueen_api_ldap_password: 'password' |
vnaumov | 61c1a48 | 2018-04-04 11:14:08 +0400 | [diff] [blame] | 14 | kqueen_api_auth_modules: 'local' |
Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 15 | docker_kqueen_ui_replicas: 1 |
| 16 | kqueen_ui_bind_port: ${_param:haproxy_kqueen_ui_bind_port} |
| 17 | kqueen_ui_bind_host: kqueen-ui |
| 18 | kqueen_ui_mail_host: mail |
| 19 | kqueen_ui_mail_port: 10025 |
| 20 | kqueen_ui_debug: True |
| 21 | kqueen_ui_enable_public_registration: False |
vnaumov | 61c1a48 | 2018-04-04 11:14:08 +0400 | [diff] [blame] | 22 | kqueen_ui_ldap_auth_notify: False |
| 23 | kqueen_ui_local_auth_notify: True |
Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 24 | kqueen_credentials: |
| 25 | kqueen_api_secret_key: 'pasteyoursecret' |
| 26 | kqueen_ui_secret_key: 'pasteyoursecret' |
| 27 | kqueen_api_bootstrap_admin: True |
| 28 | kqueen_api_admin_username: admin |
| 29 | kqueen_api_admin_password: default |
| 30 | kqueen_api_admin_organization: MirantisCloudPlatform |
| 31 | kqueen_api_admin_namespace: mcp |
| 32 | docker: |
| 33 | client: |
| 34 | stack: |
| 35 | kqueen: |
vnaumov | b148009 | 2018-05-22 16:53:36 +0400 | [diff] [blame] | 36 | environment: |
| 37 | KQUEEN_DEBUG: ${_param:kqueen_api_debug} |
| 38 | KQUEEN_CONFIG_FILE: config/prod.py |
| 39 | KQUEEN_LDAP_URI: ${_param:kqueen_api_ldap_uri} |
| 40 | KQUEEN_LDAP_DN: ${_param:kqueen_api_ldap_dn} |
| 41 | KQUEEN_LDAP_PASSWORD: ${_param:kqueen_api_ldap_password} |
| 42 | KQUEEN_AUTH_MODULES: ${_param:kqueen_api_auth_modules} |
| 43 | KQUEEN_ETCD_HOST: ${_param:kqueen_api_db_host} |
| 44 | KQUEEN_PROMETHEUS_WHITELIST: ${_param:kqueen_api_prometheus_whitelist} |
| 45 | KQUEEN_SECRET_KEY: ${_param:kqueen_credentials:kqueen_api_secret_key} |
| 46 | BOOTSTRAP_ADMIN: ${_param:kqueen_credentials:kqueen_api_bootstrap_admin} |
| 47 | BOOTSTRAP_ADMIN_USERNAME: ${_param:kqueen_credentials:kqueen_api_admin_username} |
| 48 | BOOTSTRAP_ADMIN_PASSWORD: ${_param:kqueen_credentials:kqueen_api_admin_password} |
| 49 | BOOTSTRAP_ADMIN_ORGANIZATION: ${_param:kqueen_credentials:kqueen_api_admin_organization} |
| 50 | BOOTSTRAP_ADMIN_NAMESPACE: ${_param:kqueen_credentials:kqueen_api_admin_namespace} |
| 51 | KQUEENUI_PREFERRED_URL_SCHEME: https |
| 52 | KQUEENUI_DEBUG: ${_param:kqueen_ui_debug} |
| 53 | KQUEEN_UI_CONFIG_FILE: config/prod.py |
| 54 | KQUEENUI_SECRET_KEY: ${_param:kqueen_credentials:kqueen_ui_secret_key} |
| 55 | KQUEENUI_KQUEEN_API_URL: http://${_param:kqueen_api_bind_host}:${_param:kqueen_api_bind_port}/api/v1/ |
| 56 | KQUEENUI_KQUEEN_AUTH_URL: http://${_param:kqueen_api_bind_host}:${_param:kqueen_api_bind_port}/api/v1/auth |
| 57 | KQUEENUI_KQUEEN_SERVICE_USER_USERNAME: ${_param:kqueen_credentials:kqueen_api_admin_username} |
| 58 | KQUEENUI_KQUEEN_SERVICE_USER_PASSWORD: ${_param:kqueen_credentials:kqueen_api_admin_password} |
| 59 | KQUEENUI_MAIL_SERVER: ${_param:kqueen_ui_mail_host} |
| 60 | KQUEENUI_MAIL_PORT: ${_param:kqueen_ui_mail_port} |
| 61 | KQUEENUI_ENABLE_PUBLIC_REGISTRATION: ${_param:kqueen_ui_enable_public_registration} |
| 62 | KQUEENUI_LDAP_AUTH_NOTIFY: ${_param:kqueen_ui_ldap_auth_notify} |
| 63 | KQUEENUI_LOCAL_AUTH_NOTIFY: ${_param:kqueen_ui_local_auth_notify} |
| 64 | STATIC_DIR: /mnt/static/ |
| 65 | ETCD_NAME: 0 |
| 66 | ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd:2380 |
| 67 | ETCD_INITIAL_CLUSTER_STATE: new |
| 68 | ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster-1 |
| 69 | ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:${_param:haproxy_etcd_bind_port} |
| 70 | ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380 |
| 71 | ETCD_ADVERTISE_CLIENT_URLS: http://127.0.0.1:4001,http://etcd:${_param:haproxy_etcd_bind_port} |
Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 72 | service: |
| 73 | kqueen-api: |
| 74 | image: ${_param:docker_image_kqueen_api} |
Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 75 | deploy: |
| 76 | replicas: ${_param:docker_kqueen_api_replicas} |
| 77 | restart_policy: |
| 78 | condition: any |
| 79 | ports: |
| 80 | - ${_param:haproxy_kqueen_api_exposed_port}:${_param:haproxy_kqueen_api_bind_port} |
| 81 | volumes: |
| 82 | - /srv/volumes/kqueen/logs/:/var/log/kqueen-api |
| 83 | kqueen-ui: |
| 84 | image: ${_param:docker_image_kqueen_ui} |
Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 85 | deploy: |
| 86 | replicas: ${_param:docker_kqueen_ui_replicas} |
| 87 | restart_policy: |
| 88 | condition: any |
| 89 | ports: |
| 90 | - ${_param:haproxy_kqueen_ui_exposed_port}:${_param:haproxy_kqueen_ui_bind_port} |
| 91 | volumes: |
| 92 | - /srv/volumes/kqueen/logs/:/var/log/kqueen-ui |
| 93 | etcd: |
| 94 | image: quay.io/coreos/etcd:latest |
Vnaumov | 1acc369 | 2018-03-15 19:27:56 +0400 | [diff] [blame] | 95 | ports: |
| 96 | - ${_param:haproxy_etcd_exposed_port}:${_param:haproxy_etcd_bind_port} |
| 97 | volumes: |
| 98 | - /srv/volumes/etcd:/0.etcd/ |
| 99 | network: |
| 100 | default: |
| 101 | external: |
| 102 | name: kqueen_backend |