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 |
| Source | https://github.com/woodpecker-ci/woodpecker |
| Website | https://woodpecker-ci.org/ |
| 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.
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=${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: alwaysSave as compose.yaml, then run podman-compose up -d.
.env:
# .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=${TZ:-UTC}
SERVER_DATA_LOCATION=
AGENT_DATA_LOCATION=
WOODPECKER_AGENT_ENABLE=
WOODPECKER_GITEA=
WOODPECKER_GITEA_URL=
appjail-director.yml:
# 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
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:
device: '/path/to/containers/woodpecker'
agent_data:
device: !ENV '${AGENT_DATA_LOCATION}'Makejail:
# 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.
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.
To avoid exposing ports, just remove the expose option in your appjail-director.yml or from your command-line arguments.
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=${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:latestSave as run.sh, then run sh run.sh.
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=${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 woodpeckerSave the files above, then run sh run.sh.
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.
To avoid exposing ports, just remove the expose option in your appjail-director.yml or from your command-line arguments.
Warning
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=${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. Or via CLI:
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=${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- 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: "${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.
Access at: http://localhost:8000
| 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 |
| Path | Description |
|---|---|
/config |
Data directory (database, logs) |
| Port | Protocol | Description |
|---|---|---|
8000 |
TCP | Server Web UI/API |
9000 |
TCP | GRPC (Server/Agent communication) |
Architectures: amd64
User: bsd (UID/GID via PUID/PGID, defaults to 1000:1000)
Base: FreeBSD 15.1
Need help? Join our Discord community.