From b2cf49fd2ab93f2346baf94446c471878ddfa451 Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 11 May 2025 17:19:26 +0000 Subject: [PATCH] =?UTF-8?q?boxgenerator-docker-compose.yml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boxgenerator-docker-compose.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 boxgenerator-docker-compose.yml diff --git a/boxgenerator-docker-compose.yml b/boxgenerator-docker-compose.yml new file mode 100644 index 0000000..742de00 --- /dev/null +++ b/boxgenerator-docker-compose.yml @@ -0,0 +1,36 @@ +services: + boxes: + image: fedora:latest + container_name: ${EXTERNAL_NAME} + ports: + - "${EXTERNAL_PORT}:8000" + environment: + BUILD_BRANCH: master + BUILD_REPO: https://github.com/florianfesti/boxes.git + volumes: + - ./boxes:/boxes + command: /boxes/scripts/boxesserver + deploy: + mode: replicated + replicas: 1 + update_config: + parallelism: 1 + delay: 10s + restart_policy: + condition: on-failure + build: + context: . + dockerfile: Dockerfile + args: + - BUILD_BRANCH=${BUILD_BRANCH} + - BUILD_REPO=${BUILD_REPO} + # Install requirements + init: true + entrypoint: + - /bin/sh + - -c + - | + dnf install -y git-core python3-markdown python3-setuptools python3-affine python3-shapely python3-pillow python3-qrcode pstoedit && dnf clean all + git clone --depth 1 -b ${BUILD_BRANCH} ${BUILD_REPO} /boxes + chmod +x /boxes/scripts/boxesserver + /boxes/scripts/boxesserver