feat(deploy): vollständige Containerlösung
This commit is contained in:
3
deploy/Dockerfile
Normal file
3
deploy/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM thecatlady/webhook:2.8.0
|
||||
USER root
|
||||
RUN apk add --no-cache git docker-cli bash
|
||||
@@ -1,5 +0,0 @@
|
||||
FROM alpine:3.19
|
||||
|
||||
RUN apk add --no-cache git docker-cli bash
|
||||
|
||||
WORKDIR /workspace
|
||||
@@ -1,25 +1,7 @@
|
||||
[
|
||||
{
|
||||
"id": "bruchtal-deploy",
|
||||
"execute-command": "docker",
|
||||
"command-working-directory": "/",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
"execute-command": "/workspace/deploy/deploy-bruchtal.sh",
|
||||
"command-working-directory": "/workspace"
|
||||
}
|
||||
]
|
||||
@@ -1,28 +1,12 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
bruchtal-webhook:
|
||||
image: thecatlady/webhook:2.8.0
|
||||
build: ./deploy
|
||||
container_name: bruchtal-webhook
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- bruchtal-net # 👈 neu für gitea
|
||||
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
|
||||
ports:
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- /docker/Bruchtal:/workspace
|
||||
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
entrypoint: ["sleep", "infinity"]
|
||||
|
||||
networks:
|
||||
bruchtal-net:
|
||||
external: true
|
||||
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user