docker-compose.yml aktualisiert
This commit is contained in:
parent
9e417495ce
commit
7e42059558
|
|
@ -1,20 +1,27 @@
|
||||||
services:
|
name: Deploy Standortpruefung
|
||||||
wind_tool_standortpruefung:
|
on: [push]
|
||||||
build: .
|
jobs:
|
||||||
container_name: wind_tool_standortpruefung
|
deploy:
|
||||||
restart: always
|
runs-on: ubuntu-latest
|
||||||
networks:
|
steps:
|
||||||
- proxy
|
- name: Deploy via SSH
|
||||||
labels:
|
uses: appleboy/ssh-action@master
|
||||||
- "traefik.enable=true"
|
with:
|
||||||
# Die URL unter der das Tool erreichbar sein wird
|
host: ${{ secrets.DEPLOY_HOST }}
|
||||||
- "traefik.http.routers.wind_tool.rule=Host(`wind-tool-standortpruefung.enwelo-serverumgebung.cloud`)"
|
username: ${{ secrets.DEPLOY_USER }}
|
||||||
- "traefik.http.routers.wind_tool.entrypoints=websecure"
|
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
- "traefik.http.routers.wind_tool.tls=true"
|
script: |
|
||||||
- "traefik.http.routers.wind_tool.tls.certresolver=myresolver"
|
# HIER kommen die Pfad-Befehle aus der Anleitung rein:
|
||||||
# Nginx im Docker-Container läuft standardmäßig auf Port 80
|
mkdir -p /opt/automation-stack/apps/wind-tool-standortpruefung
|
||||||
- "traefik.http.services.wind_tool.loadbalancer.server.port=80"
|
cd /opt/automation-stack/apps/wind-tool-standortpruefung
|
||||||
|
|
||||||
networks:
|
# Code aktualisieren (Reset erzwingen, damit es aktuell ist)
|
||||||
proxy:
|
if [ ! -d ".git" ]; then
|
||||||
external: true
|
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
|
||||||
Loading…
Reference in New Issue