From 54f1c0f2421a9a5381ec66a32b40ac4e5193e80c Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 26 Jul 2021 21:52:29 +0200 Subject: [PATCH] add integration docker-compose file --- .drone.yml | 3 --- README.md | 12 ++++++++++++ docker-compose.yml | 22 ++++++++++++++++++++++ 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 docker-compose.yml diff --git a/.drone.yml b/.drone.yml index 14e2f6f..c461d14 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,9 +26,6 @@ steps: from_secret: "docker_username" password: from_secret: "docker_password" - when: - event: - - tag image_pull_secrets: - dockerconfig diff --git a/README.md b/README.md index c4e62a3..b34cd9d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..34a4ef2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2021 WTF Kooperative eG +# +# 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