From cee271bc77a73bbd56c2df1e0bfd489ce5aea6ef Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 24 Oct 2022 23:00:00 -0700 Subject: [PATCH] woodpecker --- README.md | 7 +++++++ docker-compose/woodpecker.yaml | 35 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 README.md create mode 100644 docker-compose/woodpecker.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..8e89e09 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Configs + +- [Woodpecker](https://woodpecker-ci.org/): `docker-compose/woodpecker.yml` + +# Usage + +- Instead of copy and pasting stuff, link it! diff --git a/docker-compose/woodpecker.yaml b/docker-compose/woodpecker.yaml new file mode 100644 index 0000000..2aec386 --- /dev/null +++ b/docker-compose/woodpecker.yaml @@ -0,0 +1,35 @@ +version: '3' + +services: + woodpecker-server: + image: woodpeckerci/woodpecker-server:latest + ports: + - 8000:8000 + - 80:80 + - 443:443 + volumes: + - woodpecker-server-data:/var/lib/woodpecker/ + environment: + - WOODPECKER_OPEN=true + - WOODPECKER_HOST=${WOODPECKER_HOST} + - WOODPECKER_GITEA=true + - 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_LETS_ENCRYPT=true + + woodpecker-agent: + image: woodpeckerci/woodpecker-agent:latest + command: agent + restart: always + depends_on: + - woodpecker-server + volumes: + - /var/run/docker.sock:/var/run/docker.sock + environment: + - WOODPECKER_SERVER=woodpecker-server:9000 + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + +volumes: + woodpecker-server-data: \ No newline at end of file