commit c1de20ae84ca0f935ea24fd0e380cb95efe0b2b3 Author: Ryan Harg Date: Thu Nov 14 11:14:34 2024 +0100 Initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c877c05 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +agent-config/ +server-data/ +.env diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..5689ac4 --- /dev/null +++ b/compose.yml @@ -0,0 +1,41 @@ +services: + woodpecker-server: + image: woodpeckerci/woodpecker-server:latest + container_name: woodpecker-server + ports: + - 8000:8000 + restart: unless-stopped + volumes: + - ./server-data:/var/lib/woodpecker/ + environment: + - WOODPECKER_OPEN=false + - WOODPECKER_HOST=${WOODPECKER_HOST} + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + env_file: + - .env + networks: + - nginx-reverse-proxy_proxy + - woodpecker + + woodpecker-agent: + image: woodpeckerci/woodpecker-agent:latest + container_name: woodpecker-agent + command: agent + restart: unless-stopped + depends_on: + - woodpecker-server + volumes: + - ./agent-config:/etc/woodpecker + - /var/run/docker.sock:/var/run/docker.sock + env_file: + - .env + environment: + - WOODPECKER_SERVER=woodpecker-server:9000 + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} + networks: + - woodpecker + +networks: + nginx-reverse-proxy_proxy: + external: true + woodpecker: