aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/woodpecker-ci/integration/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod/app/woodpecker-ci/integration/docker-compose.yml')
-rw-r--r--cluster/prod/app/woodpecker-ci/integration/docker-compose.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/cluster/prod/app/woodpecker-ci/integration/docker-compose.yml b/cluster/prod/app/woodpecker-ci/integration/docker-compose.yml
new file mode 100644
index 0000000..467207e
--- /dev/null
+++ b/cluster/prod/app/woodpecker-ci/integration/docker-compose.yml
@@ -0,0 +1,33 @@
+version: '3.4'
+services:
+ nix-daemon:
+ image: nixpkgs/nix:nixos-22.05
+ restart: always
+ command: nix-daemon
+ privileged: true
+ volumes:
+ - "nix:/nix"
+ - "./nix.conf:/etc/nix/nix.conf:ro"
+
+ woodpecker-runner:
+ image: woodpeckerci/woodpecker-agent:v2.3.0
+ restart: always
+ environment:
+ # -- change these for each agent
+ - WOODPECKER_HOSTNAME=i_forgot_to_change_my_runner_name
+ - WOODPECKER_AGENT_SECRET=xxxx
+ - WOODPECKER_MAX_WORKFLOWS=4
+ # -- if not using COMPOSE_PROJECT_NAME=woodpecker, change name of volume to mount
+ - WOODPECKER_BACKEND_DOCKER_VOLUMES=woodpecker_nix:/nix:ro
+ # -- should not need change
+ - WOODPECKER_SERVER=woodpecker-grpc.deuxfleurs.fr:14453
+ - WOODPECKER_HEALTHCHECK=false
+ - WOODPECKER_GRPC_SECURE=true
+ - WOODPECKER_LOG_LEVEL=info
+ - WOODPECKER_DEBUG_PRETTY=true
+ - WOODPECKER_ENVIRONMENT=NIX_REMOTE:daemon
+ volumes:
+ - "/var/run/docker.sock:/var/run/docker.sock"
+
+volumes:
+ nix: