aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/woodpecker-ci/integration/docker-compose.yml
blob: 76aa592c37062ab8de9931f9f4aefad1a6e474bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.4.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: