From c1de20ae84ca0f935ea24fd0e380cb95efe0b2b3 Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Thu, 14 Nov 2024 11:14:34 +0100 Subject: [PATCH] Initial --- .gitignore | 3 +++ compose.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100644 compose.yml 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: