2024-02-09 10:29:03 +00:00
|
|
|
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:
|
2024-04-24 20:20:20 +00:00
|
|
|
image: woodpeckerci/woodpecker-agent:v2.4.0
|
2024-02-09 10:29:03 +00:00
|
|
|
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:
|