Skip to content

Woodpecker CI Woodpecker CI

Description / nameInput element
Container Registry
Container Configuration Root Path
Timezone
User ID
Group ID
Woodpecker CI Host Port
Woodpecker CI /config Path

Build Status Last Commit OCI Pulls

Lightweight CI/CD pipeline server with a built-in agent — integrates with Gitea, GitHub, and GitLab for automated builds and deployments.

Port 8000
Registry ghcr.io/daemonless/woodpecker
Daemonless daemonless/woodpecker
Source woodpecker-ci/woodpecker
Website woodpecker-ci.org

Version Tags

Tag Description Best For
latest Upstream Binary. Built from official release. Most users — recommended.

Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions, including the security model for host vs. container privileges.

Deployment

services:
  woodpecker:
    image: "ghcr.io/daemonless/woodpecker:latest"
    container_name: woodpecker
    environment:
      - WOODPECKER_SERVER_ENABLE=true  # Enable Woodpecker Server (true/false)
      - WOODPECKER_HOST=${WOODPECKER_HOST}  # The external URL of this server, e.g. https://ci.example.com
      - WOODPECKER_DATABASE_DRIVER=sqlite3  # Database driver (sqlite3 or postgres)
      - WOODPECKER_DATABASE_DATASOURCE=/config/woodpecker.sqlite  # Database connection string or file path
      - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}  # Shared secret for server-agent communication
      - PUID=1000
      - PGID=1000
      - TZ=UTC  # Timezone for the containers
      - SERVER_DATA_LOCATION=  # Path to store the server's data (database, logs)
      - AGENT_DATA_LOCATION=  # Path to store the agent's data
      - WOODPECKER_AGENT_ENABLE=  # Enable Woodpecker Agent (true/false)
      - WOODPECKER_GITEA=  # Enable Gitea authentication (true/false)
      - WOODPECKER_GITEA_URL=  # The URL of the Gitea server
    volumes:
      - "/path/to/containers/woodpecker:/config"
    ports:
      - "8000:8000"
      - "9000:9000"
    # always (not unless-stopped) so FreeBSD's podman rc.d auto-starts it at boot
    restart: always

Save as compose.yaml, then run podman-compose up -d.

podman run -d --name woodpecker \
  -p 8000:8000 \
  -p 9000:9000 \
  -e WOODPECKER_SERVER_ENABLE=true \
  -e WOODPECKER_HOST=${WOODPECKER_HOST} \
  -e WOODPECKER_DATABASE_DRIVER=sqlite3 \
  -e WOODPECKER_DATABASE_DATASOURCE=/config/woodpecker.sqlite \
  -e WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -e SERVER_DATA_LOCATION= \
  -e AGENT_DATA_LOCATION= \
  -e WOODPECKER_AGENT_ENABLE= \
  -e WOODPECKER_GITEA= \
  -e WOODPECKER_GITEA_URL= \
  -v /path/to/containers/woodpecker:/config \
  ghcr.io/daemonless/woodpecker:latest

Save as run.sh, then run sh run.sh.

- name: Deploy woodpecker
  containers.podman.podman_container:
    name: woodpecker
    image: "ghcr.io/daemonless/woodpecker:latest"
    state: started
    restart_policy: always
    env:
      WOODPECKER_SERVER_ENABLE: "true"
      WOODPECKER_HOST: "${WOODPECKER_HOST}"
      WOODPECKER_DATABASE_DRIVER: "sqlite3"
      WOODPECKER_DATABASE_DATASOURCE: "/config/woodpecker.sqlite"
      WOODPECKER_AGENT_SECRET: "${WOODPECKER_AGENT_SECRET}"
      PUID: "1000"
      PGID: "1000"
      TZ: "UTC"
      SERVER_DATA_LOCATION: ""
      AGENT_DATA_LOCATION: ""
      WOODPECKER_AGENT_ENABLE: ""
      WOODPECKER_GITEA: ""
      WOODPECKER_GITEA_URL: ""
    ports:
      - "8000:8000"
      - "9000:9000"
    volumes:
      - "/path/to/containers/woodpecker:/config"

Save as woodpecker-deploy.yaml, then run ansible-playbook woodpecker-deploy.yaml.

Warning

Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.

# .env

DIRECTOR_PROJECT=woodpecker
WOODPECKER_SERVER_ENABLE=true
WOODPECKER_HOST=${WOODPECKER_HOST}
WOODPECKER_DATABASE_DRIVER=sqlite3
WOODPECKER_DATABASE_DATASOURCE=/config/woodpecker.sqlite
WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
PUID=1000
PGID=1000
TZ=UTC
SERVER_DATA_LOCATION=
AGENT_DATA_LOCATION=
WOODPECKER_AGENT_ENABLE=
WOODPECKER_GITEA=
WOODPECKER_GITEA_URL=
# appjail-director.yml

options:
  - alias:
  - ip4_inherit:
services:
  woodpecker:
    name: woodpecker
    options:
      - container: 'args:--pull'
      - expose: '8000:8000 proto:tcp'
      - expose: '9000:9000 proto:tcp'
    oci:
      user: root
      environment:
        - WOODPECKER_SERVER_ENABLE: !ENV '${WOODPECKER_SERVER_ENABLE}'
        - WOODPECKER_HOST: !ENV '${WOODPECKER_HOST}'
        - WOODPECKER_DATABASE_DRIVER: !ENV '${WOODPECKER_DATABASE_DRIVER}'
        - WOODPECKER_DATABASE_DATASOURCE: !ENV '${WOODPECKER_DATABASE_DATASOURCE}'
        - WOODPECKER_AGENT_SECRET: !ENV '${WOODPECKER_AGENT_SECRET}'
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
        - SERVER_DATA_LOCATION: !ENV '${SERVER_DATA_LOCATION}'
        - AGENT_DATA_LOCATION: !ENV '${AGENT_DATA_LOCATION}'
        - WOODPECKER_AGENT_ENABLE: !ENV '${WOODPECKER_AGENT_ENABLE}'
        - WOODPECKER_GITEA: !ENV '${WOODPECKER_GITEA}'
        - WOODPECKER_GITEA_URL: !ENV '${WOODPECKER_GITEA_URL}'
    volumes:
      - WOODPECKER_CONFIG_PATH: /config
  woodpecker-agent:
    name: woodpecker_agent
    options:
      - from: ghcr.io/daemonless/woodpecker:latest
      - template: !ENV '${PWD}/template.conf'
    oci:
      environment:
        - WOODPECKER_AGENT_ENABLE: "true"
        - WOODPECKER_SERVER: "localhost:9000"
        - WOODPECKER_AGENT_SECRET: !ENV '${WOODPECKER_AGENT_SECRET}'
        - PUID: "1000"
        - PGID: "1000"
        - TZ: !ENV '${TZ}'
    volumes:
      - agent_data: /config
volumes:
  WOODPECKER_CONFIG_PATH:
    device: '/path/to/containers/woodpecker'
  agent_data:
    device: !ENV '${AGENT_DATA_LOCATION}'
1
2
3
4
5
6
7
# Makejail

ARG tag=latest

OPTION container=boot
OPTION overwrite=force
OPTION from=ghcr.io/daemonless/woodpecker:${tag}

Save the files above, then run appjail-director up.

appjail oci run -Pd \
  -o overwrite=force \
  -o container="args:--pull" \
  -o virtualnet=":<random> default" \
  -o nat \
  -o expose="8000:8000 proto:tcp" \
  -o expose="9000:9000 proto:tcp" \
  -e WOODPECKER_SERVER_ENABLE=true \
  -e WOODPECKER_HOST=${WOODPECKER_HOST} \
  -e WOODPECKER_DATABASE_DRIVER=sqlite3 \
  -e WOODPECKER_DATABASE_DATASOURCE=/config/woodpecker.sqlite \
  -e WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -e SERVER_DATA_LOCATION= \
  -e AGENT_DATA_LOCATION= \
  -e WOODPECKER_AGENT_ENABLE= \
  -e WOODPECKER_GITEA= \
  -e WOODPECKER_GITEA_URL= \
  -o fstab="/path/to/containers/woodpecker /config <pseudofs>" \
  ghcr.io/daemonless/woodpecker:latest woodpecker

Save the files above, then run sh run.sh.

Experimental

Bastille's OCI support is experimental. It requires buildah and shares the host network stack (inherit). Mount volumes with --volume HOST JAIL; without it, image-declared volumes are stored under ${bastille_volumesdir}/${jail}.

services:
  woodpecker:
    name: woodpecker
    image: "ghcr.io/daemonless/woodpecker:latest"
    network:
      - mode: host
    environment:
      - WOODPECKER_SERVER_ENABLE=true
      - WOODPECKER_HOST=${WOODPECKER_HOST}
      - WOODPECKER_DATABASE_DRIVER=sqlite3
      - WOODPECKER_DATABASE_DATASOURCE=/config/woodpecker.sqlite
      - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
      - PUID=1000
      - PGID=1000
      - TZ=UTC
      - SERVER_DATA_LOCATION=
      - AGENT_DATA_LOCATION=
      - WOODPECKER_AGENT_ENABLE=
      - WOODPECKER_GITEA=
      - WOODPECKER_GITEA_URL=
    volumes:
      - "/path/to/containers/woodpecker:/config"

Save as bastille-compose.yml, then run bastille up.

bastille create -O \
  --env WOODPECKER_SERVER_ENABLE=true \
  --env WOODPECKER_HOST=${WOODPECKER_HOST} \
  --env WOODPECKER_DATABASE_DRIVER=sqlite3 \
  --env WOODPECKER_DATABASE_DATASOURCE=/config/woodpecker.sqlite \
  --env WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} \
  --env PUID=1000 \
  --env PGID=1000 \
  --env TZ=UTC \
  --env SERVER_DATA_LOCATION= \
  --env AGENT_DATA_LOCATION= \
  --env WOODPECKER_AGENT_ENABLE= \
  --env WOODPECKER_GITEA= \
  --env WOODPECKER_GITEA_URL= \
  --volume /path/to/containers/woodpecker /config \
  woodpecker ghcr.io/daemonless/woodpecker:latest inherit

Access at: http://localhost:8000

Interactive Configuration

Parameters

Environment Variables

Variable Default Description
WOODPECKER_SERVER_ENABLE true Enable Woodpecker Server (true/false)
WOODPECKER_HOST ${WOODPECKER_HOST} The external URL of this server, e.g. https://ci.example.com
WOODPECKER_DATABASE_DRIVER sqlite3 Database driver (sqlite3 or postgres)
WOODPECKER_DATABASE_DATASOURCE /config/woodpecker.sqlite Database connection string or file path
WOODPECKER_AGENT_SECRET ${WOODPECKER_AGENT_SECRET} Shared secret for server-agent communication
PUID 1000
PGID 1000
TZ ${TZ:-UTC} Timezone for the containers
SERVER_DATA_LOCATION `` Path to store the server's data (database, logs)
AGENT_DATA_LOCATION `` Path to store the agent's data
WOODPECKER_AGENT_ENABLE `` Enable Woodpecker Agent (true/false)
WOODPECKER_GITEA `` Enable Gitea authentication (true/false)
WOODPECKER_GITEA_URL `` The URL of the Gitea server

Volumes

Path Description
/config Data directory (database, logs)

Ports

Port Protocol Description
8000 TCP Server Web UI/API
9000 TCP GRPC (Server/Agent communication)

Implementation Details

  • Architectures: amd64
  • User: bsd (UID/GID set via PUID/PGID). Defaults to 1000:1000.
  • Base: Built on ghcr.io/daemonless/base (FreeBSD 15.1).

Need help? Join our Discord community.