feat(deploy): vollständige Containerlösung

This commit is contained in:
2026-02-22 19:08:57 +01:00
parent cfa050d7d1
commit abd9c085f8
4 changed files with 10 additions and 46 deletions

3
deploy/Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM thecatlady/webhook:2.8.0
USER root
RUN apk add --no-cache git docker-cli bash

View File

@@ -1,5 +0,0 @@
FROM alpine:3.19
RUN apk add --no-cache git docker-cli bash
WORKDIR /workspace

View File

@@ -1,25 +1,7 @@
[ [
{ {
"id": "bruchtal-deploy", "id": "bruchtal-deploy",
"execute-command": "docker", "execute-command": "/workspace/deploy/deploy-bruchtal.sh",
"command-working-directory": "/", "command-working-directory": "/workspace"
"pass-arguments-to-command": [
{
"source": "string",
"name": "exec"
},
{
"source": "string",
"name": "bruchtal-deploy"
},
{
"source": "string",
"name": "bash"
},
{
"source": "string",
"name": "/workspace/deploy/deploy-bruchtal.sh"
}
]
} }
] ]

View File

@@ -1,28 +1,12 @@
version: "3.8"
services: services:
bruchtal-webhook: bruchtal-webhook:
image: thecatlady/webhook:2.8.0 build: ./deploy
container_name: bruchtal-webhook container_name: bruchtal-webhook
restart: unless-stopped restart: unless-stopped
networks: ports:
- bruchtal-net # 👈 neu für gitea - "9001:9001"
volumes:
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
- /docker/Bruchtal:/docker/Bruchtal:rw
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]
bruchtal-deploy:
build: ./deploy
container_name: bruchtal-deploy
networks:
- bruchtal-net
volumes: volumes:
- /docker/Bruchtal:/workspace - /docker/Bruchtal:/workspace
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
entrypoint: ["sleep", "infinity"] command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]
networks:
bruchtal-net:
external: true