commit cee271bc77a73bbd56c2df1e0bfd489ce5aea6ef Author: sneakers-the-rat Date: Mon Oct 24 23:00:00 2022 -0700 woodpecker 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