docker-compose.yml aktualisiert

This commit is contained in:
gitea-enwelo-jba 2026-04-23 15:27:25 +00:00
parent 9e417495ce
commit 7e42059558
1 changed files with 27 additions and 20 deletions

View File

@ -1,20 +1,27 @@
services:
wind_tool_standortpruefung:
build: .
container_name: wind_tool_standortpruefung
restart: always
networks:
- proxy
labels:
- "traefik.enable=true"
# Die URL unter der das Tool erreichbar sein wird
- "traefik.http.routers.wind_tool.rule=Host(`wind-tool-standortpruefung.enwelo-serverumgebung.cloud`)"
- "traefik.http.routers.wind_tool.entrypoints=websecure"
- "traefik.http.routers.wind_tool.tls=true"
- "traefik.http.routers.wind_tool.tls.certresolver=myresolver"
# Nginx im Docker-Container läuft standardmäßig auf Port 80
- "traefik.http.services.wind_tool.loadbalancer.server.port=80"
name: Deploy Standortpruefung
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
# HIER kommen die Pfad-Befehle aus der Anleitung rein:
mkdir -p /opt/automation-stack/apps/wind-tool-standortpruefung
cd /opt/automation-stack/apps/wind-tool-standortpruefung
networks:
proxy:
external: true
# Code aktualisieren (Reset erzwingen, damit es aktuell ist)
if [ ! -d ".git" ]; then
git clone https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git .
else
git fetch origin main
git reset --hard origin/main
fi
# Starten nach Anleitung
docker compose up -d --build --force-recreate