add integration docker-compose file
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
weeman 2021-07-26 21:52:29 +02:00
parent 178381b00c
commit 54f1c0f242
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1
3 changed files with 34 additions and 3 deletions

View File

@ -26,9 +26,6 @@ steps:
from_secret: "docker_username"
password:
from_secret: "docker_password"
when:
event:
- tag
image_pull_secrets:
- dockerconfig

View File

@ -177,6 +177,18 @@ Für die Produktionsumgebung wird [waitress](https://docs.pylonsproject.org/proj
[`run_prod.py`](./run_prod.py) führt die DB Migrationen aus und startet den Server.
## Integrationsumgebung
Per [`docker-compose`](https://docs.docker.com/compose/) kann eine Integrationsumgebung
mit den neusten Ständen der Docker Images gestartet werden:
```
docker-compose up
```
Dann http://localhost:13337 aufrufen.
## Lizenzen
Dieses Projekt erfüllt die [REUSE](https://reuse.software/) Spezifikation.

22
docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2021 WTF Kooperative eG <https://wtf-eg.de/>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
version: "3"
services:
ki_backend:
image: registry.wtf-eg.net/ki-backend:latest
restart: "no"
ports:
- "13338:5000"
volumes:
- "./env.dev:/app/.env"
ki_frontend:
image: registry.wtf-eg.net/ki-frontend:latest
restart: "no"
ports:
- "13337:80"
environment:
VUE_APP_API_URL: http://localhost:13338