switch to docker-compose :ugly:
This commit is contained in:
7
templates/config.js.j2
Normal file
7
templates/config.js.j2
Normal file
@ -0,0 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2021 WTF Kooperative eG <https://wtf-eg.de/>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
window.ki = {
|
||||
apiUrl: '{{ ki_backend_uri }}'
|
||||
}
|
48
templates/docker-compose.yml.j2
Normal file
48
templates/docker-compose.yml.j2
Normal file
@ -0,0 +1,48 @@
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
ki:
|
||||
|
||||
volumes:
|
||||
ki_data:
|
||||
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"
|
||||
FLASK_ENV: "development"
|
||||
KI_LOGLEVEL: "10"
|
||||
KI_AUTH: "file"
|
||||
CORS_ORIGINS: "{{ ki_frontend_uri }}"
|
||||
volumes:
|
||||
- ki_data:/app/data/
|
||||
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:
|
||||
- ki
|
||||
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/
|
Reference in New Issue
Block a user