container-server/services/woodpecker/docker-compose.yml

75 lines
2.3 KiB
YAML
Raw Normal View History

2023-02-18 01:23:11 +01:00
version: '3.7'
2023-02-18 15:25:31 +01:00
# https://hub.docker.com/r/woodpeckerci/woodpecker-server/
2023-02-18 01:23:11 +01:00
# https://woodpecker-ci.org/docs/administration/setup
# https://woodpecker-ci.org/docs/administration/server-config
# https://woodpecker-ci.org/docs/administration/forges/gitea
2023-02-18 01:23:11 +01:00
2023-02-18 15:25:31 +01:00
# auth callback /authorize
2023-02-18 01:23:11 +01:00
networks:
woodpecker:
services:
woodpecker:
chore(deps): update woodpeckerci to v2.7.1 (#67) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [woodpeckerci/woodpecker-agent](https://github.com/woodpecker-ci/woodpecker) | patch | `v2.7.0-alpine` -> `v2.7.1-alpine` | | [woodpeckerci/woodpecker-server](https://github.com/woodpecker-ci/woodpecker) | patch | `v2.7.0-alpine` -> `v2.7.1-alpine` | --- ### Release Notes <details> <summary>woodpecker-ci/woodpecker (woodpeckerci/woodpecker-agent)</summary> ### [`v2.7.1`](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.7.1): 2.7.1 [Compare Source](https://github.com/woodpecker-ci/woodpecker/compare/v2.7.0...v2.7.1) ##### [2.7.1](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.7.1) - 2024-09-07 ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;6543](https://github.com/6543), [@&#8203;anbraten](https://github.com/anbraten), [@&#8203;j04n-f](https://github.com/j04n-f), [@&#8203;qwerty287](https://github.com/qwerty287), [@&#8203;dvjn](https://github.com/dvjn) ##### 🔒 Security - Lint privileged plugin match and allow to be set empty \[[#&#8203;4084](https://github.com/woodpecker-ci/woodpecker/pull/4084)] - Allow admins to specify privileged plugins by name **and tag** \[[#&#8203;4076](https://github.com/woodpecker-ci/woodpecker/pull/4076)] - Warn if using secrets/env with plugin \[[#&#8203;4039](https://github.com/woodpecker-ci/woodpecker/pull/4039)] ##### 🐛 Bug Fixes - Set refspec for gitlab MR \[[#&#8203;4021](https://github.com/woodpecker-ci/woodpecker/pull/4021)] - Change Bitbucket PR hook to point the source branch, commit & ref \[[#&#8203;3965](https://github.com/woodpecker-ci/woodpecker/pull/3965)] - Add updated, merged and declined events to bb webhook activation \[[#&#8203;3963](https://github.com/woodpecker-ci/woodpecker/pull/3963)] - Fix login via navbar \[[#&#8203;3962](https://github.com/woodpecker-ci/woodpecker/pull/3962)] - Fix panic if forge is unreachable \[[#&#8203;3944](https://github.com/woodpecker-ci/woodpecker/pull/3944)] - Fix org settings page \[[#&#8203;4093](https://github.com/woodpecker-ci/woodpecker/pull/4093)] ##### Misc - Bump github.com/docker/docker from v24.0.9 to v24.0.9+30 \[[#&#8203;4077](https://github.com/woodpecker-ci/woodpecker/pull/4077)] </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.csprung.de/csp/container-server/pulls/67 Co-authored-by: Renovate Bot <renovate@git.csprung.de> Co-committed-by: Renovate Bot <renovate@git.csprung.de>
2024-09-08 14:28:32 +02:00
image: woodpeckerci/woodpecker-server:v2.7.1-alpine
2023-02-18 01:23:11 +01:00
container_name: woodpecker
restart: "${RESTART:-no}"
hostname: ci
domainname: ${BASE_DOMAIN}
environment:
- WOODPECKER_HOST=https://ci.${BASE_DOMAIN}
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
- WOODPECKER_OPEN=true
- WOODPECKER_GITEA=true
- WOODPECKER_GITEA_URL=https://git.${BASE_DOMAIN}
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
- WOODPECKER_GITEA_SECRET=${WOODPECKER_GITEA_SECRET}
- WOODPECKER_DATABASE_DRIVER=postgres
- WOODPECKER_DATABASE_DATASOURCE=postgres://woodpecker:${WOODPECKER_PG_PWD:-woodpecker}@pg-woodpecker:5432/woodpecker?sslmode=disable
2023-09-24 22:47:56 +02:00
- WOODPECKER_ADMIN=${WOODPECKER_ADMIN}
- WOODPECKER_DOCKER_CONFIG=/config/docker.json
volumes:
- ./woodpecker/docker-config.json:/config/docker.json:ro
2023-02-18 01:23:11 +01:00
depends_on:
- pg-woodpecker
networks:
- proxy
- woodpecker
woodpecker-agent:
chore(deps): update woodpeckerci to v2.7.1 (#67) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [woodpeckerci/woodpecker-agent](https://github.com/woodpecker-ci/woodpecker) | patch | `v2.7.0-alpine` -> `v2.7.1-alpine` | | [woodpeckerci/woodpecker-server](https://github.com/woodpecker-ci/woodpecker) | patch | `v2.7.0-alpine` -> `v2.7.1-alpine` | --- ### Release Notes <details> <summary>woodpecker-ci/woodpecker (woodpeckerci/woodpecker-agent)</summary> ### [`v2.7.1`](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.7.1): 2.7.1 [Compare Source](https://github.com/woodpecker-ci/woodpecker/compare/v2.7.0...v2.7.1) ##### [2.7.1](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.7.1) - 2024-09-07 ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;6543](https://github.com/6543), [@&#8203;anbraten](https://github.com/anbraten), [@&#8203;j04n-f](https://github.com/j04n-f), [@&#8203;qwerty287](https://github.com/qwerty287), [@&#8203;dvjn](https://github.com/dvjn) ##### 🔒 Security - Lint privileged plugin match and allow to be set empty \[[#&#8203;4084](https://github.com/woodpecker-ci/woodpecker/pull/4084)] - Allow admins to specify privileged plugins by name **and tag** \[[#&#8203;4076](https://github.com/woodpecker-ci/woodpecker/pull/4076)] - Warn if using secrets/env with plugin \[[#&#8203;4039](https://github.com/woodpecker-ci/woodpecker/pull/4039)] ##### 🐛 Bug Fixes - Set refspec for gitlab MR \[[#&#8203;4021](https://github.com/woodpecker-ci/woodpecker/pull/4021)] - Change Bitbucket PR hook to point the source branch, commit & ref \[[#&#8203;3965](https://github.com/woodpecker-ci/woodpecker/pull/3965)] - Add updated, merged and declined events to bb webhook activation \[[#&#8203;3963](https://github.com/woodpecker-ci/woodpecker/pull/3963)] - Fix login via navbar \[[#&#8203;3962](https://github.com/woodpecker-ci/woodpecker/pull/3962)] - Fix panic if forge is unreachable \[[#&#8203;3944](https://github.com/woodpecker-ci/woodpecker/pull/3944)] - Fix org settings page \[[#&#8203;4093](https://github.com/woodpecker-ci/woodpecker/pull/4093)] ##### Misc - Bump github.com/docker/docker from v24.0.9 to v24.0.9+30 \[[#&#8203;4077](https://github.com/woodpecker-ci/woodpecker/pull/4077)] </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.csprung.de/csp/container-server/pulls/67 Co-authored-by: Renovate Bot <renovate@git.csprung.de> Co-committed-by: Renovate Bot <renovate@git.csprung.de>
2024-09-08 14:28:32 +02:00
image: woodpeckerci/woodpecker-agent:v2.7.1-alpine
2023-02-18 01:23:11 +01:00
command: agent
container_name: woodpecker-agent
restart: "${RESTART:-no}"
hostname: runner
domainname: ${BASE_DOMAIN}
environment:
- WOODPECKER_SERVER=woodpecker:9000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
- WOODPECKER_AGENT_CONFIG_FILE=/config/agent.conf
- WOODPECKER_BACKEND_DOCKER_VOLUMES=/etc/timezone:/etc/timezone:ro,${BASE_DIR:-/srv}/watchtower:/ci
2023-02-18 01:23:11 +01:00
volumes:
- ${BASE_DIR:-/srv}/woodpecker/agent:/config
2023-02-18 01:23:11 +01:00
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- woodpecker
networks:
- woodpecker
pg-woodpecker:
image: postgres:16-alpine
2023-02-18 01:23:11 +01:00
container_name: pg-woodpecker
restart: "${RESTART:-no}"
environment:
- POSTGRES_DB=woodpecker
- POSTGRES_USER=woodpecker
- POSTGRES_PASSWORD=${WOODPECKER_PG_PWD:-woodpecker}
volumes:
- ${BASE_DIR:-/srv}/woodpecker/psql:/var/lib/postgresql/data
networks:
- woodpecker