2021-08-26 19:49:06 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
ki:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
ki_db:
|
|
|
|
|
|
|
|
services:
|
|
|
|
backend:
|
|
|
|
image: "{{ ki_backend_image }}"
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- ki
|
|
|
|
environment:
|
|
|
|
SQLALCHEMY_DATABASE_URI: "mariadb+pymysql://ki:{{ ki_db_password }}@ki_db:3306/ki"
|
2021-12-06 15:29:25 +01:00
|
|
|
FLASK_ENV: "{{ ki_flask_env }}"
|
|
|
|
KI_LOGLEVEL: "{{ ki_loglevel }}"
|
2021-12-06 15:15:43 +01:00
|
|
|
KI_AUTH: "{{ ki_auth }}"
|
2021-09-15 19:16:52 +02:00
|
|
|
KI_LDAP_URL: "{{ ki_ldap_url }}"
|
|
|
|
KI_LDAP_AUTH_USER: "{{ ki_ldap_auth_user }}"
|
|
|
|
KI_LDAP_AUTH_PASSWORD: "{{ ki_ldap_auth_password }}"
|
|
|
|
KI_LDAP_BASE_DN: "{{ ki_ldap_base_dn }}"
|
2021-08-26 19:49:06 +02:00
|
|
|
CORS_ORIGINS: "{{ ki_frontend_uri }}"
|
|
|
|
ports:
|
|
|
|
- "{{ ki_backend_port }}:5000"
|
|
|
|
frontend:
|
|
|
|
image: "{{ ki_frontend_image }}"
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- backend
|
|
|
|
volumes:
|
|
|
|
- ./config.js:/usr/share/nginx/html/config.js
|
|
|
|
ports:
|
|
|
|
- "{{ ki_frontend_port }}:80"
|
|
|
|
db:
|
|
|
|
image: "{{ ki_db_image }}"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
2021-09-15 19:49:23 +02:00
|
|
|
ki:
|
|
|
|
aliases:
|
|
|
|
- ki_db
|
2021-08-26 19:49:06 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "{{ ki_db_root_password }}"
|
|
|
|
MYSQL_DATABASE: ki
|
|
|
|
MYSQL_USER: ki
|
|
|
|
MYSQL_PASSWORD: "{{ ki_db_password }}"
|
|
|
|
volumes:
|
|
|
|
- ki_db:/var/lib/mysql/
|