blob: c6b608d418f47e785de6f8aaf21861afaeaa914d [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'
12 kqueen_api_auth_modules: 'local'
Vnaumov1acc3692018-03-15 19:27:56 +040013 docker_kqueen_ui_replicas: 1
14 kqueen_ui_bind_port: ${_param:haproxy_kqueen_ui_bind_port}
15 kqueen_ui_bind_host: kqueen-ui
16 kqueen_ui_mail_host: mail
17 kqueen_ui_mail_port: 10025
18 kqueen_ui_debug: True
19 kqueen_ui_enable_public_registration: False
vnaumov61c1a482018-04-04 11:14:08 +040020 kqueen_ui_ldap_auth_notify: False
21 kqueen_ui_local_auth_notify: True
Vnaumov1acc3692018-03-15 19:27:56 +040022 kqueen_credentials:
23 kqueen_api_secret_key: 'pasteyoursecret'
24 kqueen_ui_secret_key: 'pasteyoursecret'
25 kqueen_api_bootstrap_admin: True
26 kqueen_api_admin_username: admin
27 kqueen_api_admin_password: default
28 kqueen_api_admin_organization: MirantisCloudPlatform
29 kqueen_api_admin_namespace: mcp
30 docker:
31 client:
32 stack:
33 kqueen:
34 service:
35 kqueen-api:
36 image: ${_param:docker_image_kqueen_api}
37 environment:
38 KQUEEN_DEBUG: ${_param:kqueen_api_debug}
39 KQUEEN_CONFIG_FILE: config/prod.py
vnaumov61c1a482018-04-04 11:14:08 +040040 KQUEEN_LDAP_URI: ${_param:kqueen_api_ldap_uri}
41 KQUEEN_AUTH_MODULES: ${_param:kqueen_api_auth_modules}
Vnaumov1acc3692018-03-15 19:27:56 +040042 KQUEEN_ETCD_HOST: ${_param:kqueen_api_db_host}
43 KQUEEN_PROMETHEUS_WHITELIST: ${_param:kqueen_api_prometheus_whitelist}
44 KQUEEN_SECRET_KEY: ${_param:kqueen_credentials:kqueen_api_secret_key}
45 BOOTSTRAP_ADMIN: ${_param:kqueen_credentials:kqueen_api_bootstrap_admin}
46 BOOTSTRAP_ADMIN_USERNAME: ${_param:kqueen_credentials:kqueen_api_admin_username}
47 BOOTSTRAP_ADMIN_PASSWORD: ${_param:kqueen_credentials:kqueen_api_admin_password}
48 BOOTSTRAP_ADMIN_ORGANIZATION: ${_param:kqueen_credentials:kqueen_api_admin_organization}
49 BOOTSTRAP_ADMIN_NAMESPACE: ${_param:kqueen_credentials:kqueen_api_admin_namespace}
50 deploy:
51 replicas: ${_param:docker_kqueen_api_replicas}
52 restart_policy:
53 condition: any
54 ports:
55 - ${_param:haproxy_kqueen_api_exposed_port}:${_param:haproxy_kqueen_api_bind_port}
56 volumes:
57 - /srv/volumes/kqueen/logs/:/var/log/kqueen-api
58 kqueen-ui:
59 image: ${_param:docker_image_kqueen_ui}
60 environment:
61 KQUEENUI_PREFERRED_URL_SCHEME: https
62 KQUEENUI_DEBUG: ${_param:kqueen_ui_debug}
63 KQUEEN_UI_CONFIG_FILE: config/prod.py
64 KQUEENUI_SECRET_KEY: ${_param:kqueen_credentials:kqueen_ui_secret_key}
65 KQUEENUI_KQUEEN_API_URL: http://${_param:kqueen_api_bind_host}:${_param:kqueen_api_bind_port}/api/v1/
66 KQUEENUI_KQUEEN_AUTH_URL: http://${_param:kqueen_api_bind_host}:${_param:kqueen_api_bind_port}/api/v1/auth
67 KQUEENUI_KQUEEN_SERVICE_USER_USERNAME: ${_param:kqueen_credentials:kqueen_api_admin_username}
68 KQUEENUI_KQUEEN_SERVICE_USER_PASSWORD: ${_param:kqueen_credentials:kqueen_api_admin_password}
69 KQUEENUI_MAIL_SERVER: ${_param:kqueen_ui_mail_host}
70 KQUEENUI_MAIL_PORT: ${_param:kqueen_ui_mail_port}
71 KQUEENUI_ENABLE_PUBLIC_REGISTRATION: ${_param:kqueen_ui_enable_public_registration}
vnaumov61c1a482018-04-04 11:14:08 +040072 KQUEENUI_LDAP_AUTH_NOTIFY: ${_param:kqueen_ui_ldap_auth_notify}
73 KQUEENUI_LOCAL_AUTH_NOTIFY: ${_param:kqueen_ui_local_auth_notify}
Vnaumov1acc3692018-03-15 19:27:56 +040074 STATIC_DIR: /mnt/static/
75 deploy:
76 replicas: ${_param:docker_kqueen_ui_replicas}
77 restart_policy:
78 condition: any
79 ports:
80 - ${_param:haproxy_kqueen_ui_exposed_port}:${_param:haproxy_kqueen_ui_bind_port}
81 volumes:
82 - /srv/volumes/kqueen/logs/:/var/log/kqueen-ui
83 etcd:
84 image: quay.io/coreos/etcd:latest
85 environment:
86 ETCD_NAME: 0
87 ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd:2380
88 ETCD_INITIAL_CLUSTER_STATE: new
89 ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster-1
90 ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:${_param:haproxy_etcd_bind_port}
91 ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
92 ETCD_ADVERTISE_CLIENT_URLS: http://127.0.0.1:4001,http://etcd:${_param:haproxy_etcd_bind_port}
93 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