blob: 24166ed3b94ad65ad9e3d2944bc385a40ac53933 [file] [log] [blame]
Vnaumov1acc3692018-03-15 19:27:56 +04001parameters:
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
vnaumov61c1a482018-04-04 11:14:08 +040011 kqueen_api_ldap_uri: 'ldap://ldap'
vnaumov02ea5042018-04-11 13:20:26 +040012 kqueen_api_ldap_dn: 'cn=admin,dc=example,dc=org'
vnaumov61c1a482018-04-04 11:14:08 +040013 kqueen_api_auth_modules: 'local'
Vnaumov1acc3692018-03-15 19:27:56 +040014 docker_kqueen_ui_replicas: 1
15 kqueen_ui_bind_port: ${_param:haproxy_kqueen_ui_bind_port}
16 kqueen_ui_bind_host: kqueen-ui
17 kqueen_ui_mail_host: mail
18 kqueen_ui_mail_port: 10025
19 kqueen_ui_debug: True
20 kqueen_ui_enable_public_registration: False
vnaumov61c1a482018-04-04 11:14:08 +040021 kqueen_ui_ldap_auth_notify: False
22 kqueen_ui_local_auth_notify: True
Vnaumov1acc3692018-03-15 19:27:56 +040023 kqueen_credentials:
24 kqueen_api_secret_key: 'pasteyoursecret'
25 kqueen_ui_secret_key: 'pasteyoursecret'
26 kqueen_api_bootstrap_admin: True
27 kqueen_api_admin_username: admin
Vnaumov1acc3692018-03-15 19:27:56 +040028 kqueen_api_admin_organization: MirantisCloudPlatform
29 kqueen_api_admin_namespace: mcp
30 docker:
31 client:
32 stack:
33 kqueen:
vnaumovb1480092018-05-22 16:53:36 +040034 environment:
35 KQUEEN_DEBUG: ${_param:kqueen_api_debug}
36 KQUEEN_CONFIG_FILE: config/prod.py
37 KQUEEN_LDAP_URI: ${_param:kqueen_api_ldap_uri}
38 KQUEEN_LDAP_DN: ${_param:kqueen_api_ldap_dn}
39 KQUEEN_LDAP_PASSWORD: ${_param:kqueen_api_ldap_password}
40 KQUEEN_AUTH_MODULES: ${_param:kqueen_api_auth_modules}
41 KQUEEN_ETCD_HOST: ${_param:kqueen_api_db_host}
42 KQUEEN_PROMETHEUS_WHITELIST: ${_param:kqueen_api_prometheus_whitelist}
43 KQUEEN_SECRET_KEY: ${_param:kqueen_credentials:kqueen_api_secret_key}
44 BOOTSTRAP_ADMIN: ${_param:kqueen_credentials:kqueen_api_bootstrap_admin}
45 BOOTSTRAP_ADMIN_USERNAME: ${_param:kqueen_credentials:kqueen_api_admin_username}
46 BOOTSTRAP_ADMIN_PASSWORD: ${_param:kqueen_credentials:kqueen_api_admin_password}
47 BOOTSTRAP_ADMIN_ORGANIZATION: ${_param:kqueen_credentials:kqueen_api_admin_organization}
48 BOOTSTRAP_ADMIN_NAMESPACE: ${_param:kqueen_credentials:kqueen_api_admin_namespace}
49 KQUEENUI_PREFERRED_URL_SCHEME: https
50 KQUEENUI_DEBUG: ${_param:kqueen_ui_debug}
51 KQUEEN_UI_CONFIG_FILE: config/prod.py
52 KQUEENUI_SECRET_KEY: ${_param:kqueen_credentials:kqueen_ui_secret_key}
53 KQUEENUI_KQUEEN_API_URL: http://${_param:kqueen_api_bind_host}:${_param:kqueen_api_bind_port}/api/v1/
54 KQUEENUI_KQUEEN_AUTH_URL: http://${_param:kqueen_api_bind_host}:${_param:kqueen_api_bind_port}/api/v1/auth
55 KQUEENUI_KQUEEN_SERVICE_USER_USERNAME: ${_param:kqueen_credentials:kqueen_api_admin_username}
56 KQUEENUI_KQUEEN_SERVICE_USER_PASSWORD: ${_param:kqueen_credentials:kqueen_api_admin_password}
57 KQUEENUI_MAIL_SERVER: ${_param:kqueen_ui_mail_host}
58 KQUEENUI_MAIL_PORT: ${_param:kqueen_ui_mail_port}
59 KQUEENUI_ENABLE_PUBLIC_REGISTRATION: ${_param:kqueen_ui_enable_public_registration}
60 KQUEENUI_LDAP_AUTH_NOTIFY: ${_param:kqueen_ui_ldap_auth_notify}
61 KQUEENUI_LOCAL_AUTH_NOTIFY: ${_param:kqueen_ui_local_auth_notify}
62 STATIC_DIR: /mnt/static/
63 ETCD_NAME: 0
64 ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd:2380
65 ETCD_INITIAL_CLUSTER_STATE: new
66 ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster-1
67 ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:${_param:haproxy_etcd_bind_port}
68 ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
69 ETCD_ADVERTISE_CLIENT_URLS: http://127.0.0.1:4001,http://etcd:${_param:haproxy_etcd_bind_port}
Vnaumov1acc3692018-03-15 19:27:56 +040070 service:
71 kqueen-api:
72 image: ${_param:docker_image_kqueen_api}
Vnaumov1acc3692018-03-15 19:27:56 +040073 deploy:
74 replicas: ${_param:docker_kqueen_api_replicas}
75 restart_policy:
76 condition: any
77 ports:
78 - ${_param:haproxy_kqueen_api_exposed_port}:${_param:haproxy_kqueen_api_bind_port}
79 volumes:
80 - /srv/volumes/kqueen/logs/:/var/log/kqueen-api
81 kqueen-ui:
82 image: ${_param:docker_image_kqueen_ui}
Vnaumov1acc3692018-03-15 19:27:56 +040083 deploy:
84 replicas: ${_param:docker_kqueen_ui_replicas}
85 restart_policy:
86 condition: any
87 ports:
88 - ${_param:haproxy_kqueen_ui_exposed_port}:${_param:haproxy_kqueen_ui_bind_port}
89 volumes:
90 - /srv/volumes/kqueen/logs/:/var/log/kqueen-ui
91 etcd:
92 image: quay.io/coreos/etcd:latest
Vnaumov1acc3692018-03-15 19:27:56 +040093 ports:
94 - ${_param:haproxy_etcd_exposed_port}:${_param:haproxy_etcd_bind_port}
95 volumes:
96 - /srv/volumes/etcd:/0.etcd/
97 network:
98 default:
99 external:
100 name: kqueen_backend