Add woodpecker

This commit is contained in:
Tobias Reisinger 2022-05-25 21:46:17 +02:00
parent 243b4347da
commit 81c0797bd8
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 38 additions and 0 deletions

13
woodpecker/.env Normal file
View file

@ -0,0 +1,13 @@
WOODPECKER_OPEN="true"
WOODPECKER_HOST="https://ci.serguzim.me"
WOODPECKER_ADMIN="serguzim"
WOODPECKER_AGENT_SECRET=
WOODPECKER_PROMETHEUS_AUTH_TOKEN=
WOODPECKER_GITEA="true"
WOODPECKER_GITEA_URL="https://git.serguzim.me"
WOODPECKER_GITEA_CLIENT=
WOODPECKER_GITEA_SECRET=
WOODPECKER_DATABASE_DRIVER="postgres"
WOODPECKER_DATABASE_DATASOURCE="postgres://woodpecker:xxxxxx@db.serguzim.me:5432/woodpecker?sslmode=verify-full"

View file

@ -0,0 +1,25 @@
version: '3'
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest
restart: always
env_file:
- .env
- .secret.env
ports:
- 3500:8000
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:latest
command: agent
restart: always
env_file:
- .env
- .secret.env
depends_on:
- woodpecker-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
WOODPECKER_SERVER: "woodpecker-server:9000"