Adding woodpecker

This commit is contained in:
Siina Mashek 2022-12-27 03:14:56 +02:00
parent 3dca3d1a6e
commit 4893ddd719
2 changed files with 35 additions and 0 deletions

7
woodpecker/.env-example Normal file
View File

@ -0,0 +1,7 @@
WOODPECKER_OPEN=
WOODPECKER_HOST=
WOODPECKER_GITEA=
WOODPECKER_GITEA_URL=
WOODPECKER_GITEA_CLIENT=
WOODPECKER_GITEA_SECRET=
WOODPECKER_AGENT_SECRET=

View File

@ -0,0 +1,28 @@
version: '3.8'
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest-alpine
container_name: woodpecker-server
ports:
- 8000:8000
volumes:
- /var/lib/docker/volumes/woodpecker-server-data:/var/lib/woodpecker/
environment:
- WOODPECKER_OPEN=${WOODPECKER_OPEN}
- WOODPECKER_HOST=${WOODPECKER_HOST}
- WOODPECKER_GITEA=${WOODPECKER_GITEA}
- WOODPECKER_GITEA_URL=${WOODPECKER_GITEA_URL}
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
- WOODPECKER_GITEA_SECRET=${WOODPECKER_GITEA_SECRET}
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:latest-alpine
command: agent
restart: always
depends_on:
- woodpecker-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WOODPECKER_SERVER=woodpecker-server:8000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}