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