networks:
  default:
    enable_ipv6: true

volumes:
  agent:
    driver: local

services:
  agent:
    image: woodpeckerci/woodpecker-agent:next
    container_name: woodpecker_agent
    environment:
      - WOODPECKER_SERVER=grpc.cicd.gnous.eu:443
      - WOODPECKER_MAX_WORKFLOWS=4
      - WOODPECKER_GRPC_SECURE=true
      - WOODPECKER_GRPC_VERIFY=true
    env_file:
      - path: .env
        required: false
    restart: always
    volumes:
      - agent:/etc/woodpecker
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/timezone:/etc/timezone:ro
    networks:
      - default