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.6.0 (#48) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [woodpeckerci/woodpecker-agent](https://github.com/woodpecker-ci/woodpecker) | minor | `v2.5.0-alpine` -> `v2.6.0-alpine` | | [woodpeckerci/woodpecker-server](https://github.com/woodpecker-ci/woodpecker) | minor | `v2.5.0-alpine` -> `v2.6.0-alpine` | --- ### Release Notes <details> <summary>woodpecker-ci/woodpecker (woodpeckerci/woodpecker-agent)</summary> ### [`v2.6.0`](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.6.0): 2.6.0 [Compare Source](https://github.com/woodpecker-ci/woodpecker/compare/v2.5.0...v2.6.0) ##### [2.6.0](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.6.0) - 2024-06-13 ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;6543](https://github.com/6543), [@&#8203;anbraten](https://github.com/anbraten), [@&#8203;jcgl17](https://github.com/jcgl17), [@&#8203;pat-s](https://github.com/pat-s), [@&#8203;qwerty287](https://github.com/qwerty287), [@&#8203;s00500](https://github.com/s00500), [@&#8203;wez](https://github.com/wez), [@&#8203;zc-devs](https://github.com/zc-devs) ##### 🔒 Security - Bump trivy plugin version and remove unused variable \[[#&#8203;3759](https://github.com/woodpecker-ci/woodpecker/pull/3759)] ##### ✨ Features - Allow to store logs in files \[[#&#8203;3568](https://github.com/woodpecker-ci/woodpecker/pull/3568)] - Native forgejo support \[[#&#8203;3684](https://github.com/woodpecker-ci/woodpecker/pull/3684)] ##### 🐛 Bug Fixes - Add release event to webhooks \[[#&#8203;3784](https://github.com/woodpecker-ci/woodpecker/pull/3784)] - Respect cli argument when checking docker backend availability \[[#&#8203;3770](https://github.com/woodpecker-ci/woodpecker/pull/3770)] - Fix repo creation \[[#&#8203;3756](https://github.com/woodpecker-ci/woodpecker/pull/3756)] - Fix config loading of cli \[[#&#8203;3764](https://github.com/woodpecker-ci/woodpecker/pull/3764)] - Fix missing WOODPECKER_BITBUCKET_DC_URL \[[#&#8203;3761](https://github.com/woodpecker-ci/woodpecker/pull/3761)] - Correct repo repair success message in cli \[[#&#8203;3757](https://github.com/woodpecker-ci/woodpecker/pull/3757)] ##### 📈 Enhancement - Improve step logging \[[#&#8203;3722](https://github.com/woodpecker-ci/woodpecker/pull/3722)] - chore(deps): update dependency eslint to v9 \[[#&#8203;3594](https://github.com/woodpecker-ci/woodpecker/pull/3594)] - Show workflow names if there are multiple configs \[[#&#8203;3767](https://github.com/woodpecker-ci/woodpecker/pull/3767)] - Use http constants \[[#&#8203;3766](https://github.com/woodpecker-ci/woodpecker/pull/3766)] - Spellcheck "server/\*" \[[#&#8203;3753](https://github.com/woodpecker-ci/woodpecker/pull/3753)] - Agent-wide node selector \[[#&#8203;3608](https://github.com/woodpecker-ci/woodpecker/pull/3608)] ##### 📚 Documentation - Remove misleading crontab guru suggestion from docs \[[#&#8203;3781](https://github.com/woodpecker-ci/woodpecker/pull/3781)] - Add documentation for KUBERNETES_SERVICE_HOST in Agent \[[#&#8203;3747](https://github.com/woodpecker-ci/woodpecker/pull/3747)] - Remove web.archive.org workaround in docs \[[#&#8203;3771](https://github.com/woodpecker-ci/woodpecker/pull/3771)] - Serve plugin icons locally \[[#&#8203;3768](https://github.com/woodpecker-ci/woodpecker/pull/3768)] - Docs: update local backend page \[[#&#8203;3765](https://github.com/woodpecker-ci/woodpecker/pull/3765)] - Remove old docs versions \[[#&#8203;3743](https://github.com/woodpecker-ci/woodpecker/pull/3743)] - Merge release plugins \[[#&#8203;3752](https://github.com/woodpecker-ci/woodpecker/pull/3752)] - Split FAQ \[[#&#8203;3746](https://github.com/woodpecker-ci/woodpecker/pull/3746)] ##### Misc - Update nix flake \[[#&#8203;3780](https://github.com/woodpecker-ci/woodpecker/pull/3780)] - chore(deps): lock file maintenance \[[#&#8203;3783](https://github.com/woodpecker-ci/woodpecker/pull/3783)] - chore(deps): update pre-commit hook golangci/golangci-lint to v1.59.1 \[[#&#8203;3782](https://github.com/woodpecker-ci/woodpecker/pull/3782)] - fix(deps): update codeberg.org/mvdkleijn/forgejo-sdk/forgejo digest to [`168c988`](https://github.com/woodpecker-ci/woodpecker/commit/168c988) \[[#&#8203;3776](https://github.com/woodpecker-ci/woodpecker/pull/3776)] - chore(deps): lock file maintenance \[[#&#8203;3750](https://github.com/woodpecker-ci/woodpecker/pull/3750)] - chore(deps): update gitea/gitea docker tag to v1.22 \[[#&#8203;3749](https://github.com/woodpecker-ci/woodpecker/pull/3749)] - Fix setting name \[[#&#8203;3744](https://github.com/woodpecker-ci/woodpecker/pull/3744)] </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTkuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM5OS44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.csprung.de/carsten/container-server/pulls/48 Co-authored-by: Renovate Bot <renovate@git.csprung.de> Co-committed-by: Renovate Bot <renovate@git.csprung.de>
2024-06-24 19:01:06 +02:00
image: woodpeckerci/woodpecker-server:v2.6.0-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.6.0 (#48) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [woodpeckerci/woodpecker-agent](https://github.com/woodpecker-ci/woodpecker) | minor | `v2.5.0-alpine` -> `v2.6.0-alpine` | | [woodpeckerci/woodpecker-server](https://github.com/woodpecker-ci/woodpecker) | minor | `v2.5.0-alpine` -> `v2.6.0-alpine` | --- ### Release Notes <details> <summary>woodpecker-ci/woodpecker (woodpeckerci/woodpecker-agent)</summary> ### [`v2.6.0`](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.6.0): 2.6.0 [Compare Source](https://github.com/woodpecker-ci/woodpecker/compare/v2.5.0...v2.6.0) ##### [2.6.0](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.6.0) - 2024-06-13 ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;6543](https://github.com/6543), [@&#8203;anbraten](https://github.com/anbraten), [@&#8203;jcgl17](https://github.com/jcgl17), [@&#8203;pat-s](https://github.com/pat-s), [@&#8203;qwerty287](https://github.com/qwerty287), [@&#8203;s00500](https://github.com/s00500), [@&#8203;wez](https://github.com/wez), [@&#8203;zc-devs](https://github.com/zc-devs) ##### 🔒 Security - Bump trivy plugin version and remove unused variable \[[#&#8203;3759](https://github.com/woodpecker-ci/woodpecker/pull/3759)] ##### ✨ Features - Allow to store logs in files \[[#&#8203;3568](https://github.com/woodpecker-ci/woodpecker/pull/3568)] - Native forgejo support \[[#&#8203;3684](https://github.com/woodpecker-ci/woodpecker/pull/3684)] ##### 🐛 Bug Fixes - Add release event to webhooks \[[#&#8203;3784](https://github.com/woodpecker-ci/woodpecker/pull/3784)] - Respect cli argument when checking docker backend availability \[[#&#8203;3770](https://github.com/woodpecker-ci/woodpecker/pull/3770)] - Fix repo creation \[[#&#8203;3756](https://github.com/woodpecker-ci/woodpecker/pull/3756)] - Fix config loading of cli \[[#&#8203;3764](https://github.com/woodpecker-ci/woodpecker/pull/3764)] - Fix missing WOODPECKER_BITBUCKET_DC_URL \[[#&#8203;3761](https://github.com/woodpecker-ci/woodpecker/pull/3761)] - Correct repo repair success message in cli \[[#&#8203;3757](https://github.com/woodpecker-ci/woodpecker/pull/3757)] ##### 📈 Enhancement - Improve step logging \[[#&#8203;3722](https://github.com/woodpecker-ci/woodpecker/pull/3722)] - chore(deps): update dependency eslint to v9 \[[#&#8203;3594](https://github.com/woodpecker-ci/woodpecker/pull/3594)] - Show workflow names if there are multiple configs \[[#&#8203;3767](https://github.com/woodpecker-ci/woodpecker/pull/3767)] - Use http constants \[[#&#8203;3766](https://github.com/woodpecker-ci/woodpecker/pull/3766)] - Spellcheck "server/\*" \[[#&#8203;3753](https://github.com/woodpecker-ci/woodpecker/pull/3753)] - Agent-wide node selector \[[#&#8203;3608](https://github.com/woodpecker-ci/woodpecker/pull/3608)] ##### 📚 Documentation - Remove misleading crontab guru suggestion from docs \[[#&#8203;3781](https://github.com/woodpecker-ci/woodpecker/pull/3781)] - Add documentation for KUBERNETES_SERVICE_HOST in Agent \[[#&#8203;3747](https://github.com/woodpecker-ci/woodpecker/pull/3747)] - Remove web.archive.org workaround in docs \[[#&#8203;3771](https://github.com/woodpecker-ci/woodpecker/pull/3771)] - Serve plugin icons locally \[[#&#8203;3768](https://github.com/woodpecker-ci/woodpecker/pull/3768)] - Docs: update local backend page \[[#&#8203;3765](https://github.com/woodpecker-ci/woodpecker/pull/3765)] - Remove old docs versions \[[#&#8203;3743](https://github.com/woodpecker-ci/woodpecker/pull/3743)] - Merge release plugins \[[#&#8203;3752](https://github.com/woodpecker-ci/woodpecker/pull/3752)] - Split FAQ \[[#&#8203;3746](https://github.com/woodpecker-ci/woodpecker/pull/3746)] ##### Misc - Update nix flake \[[#&#8203;3780](https://github.com/woodpecker-ci/woodpecker/pull/3780)] - chore(deps): lock file maintenance \[[#&#8203;3783](https://github.com/woodpecker-ci/woodpecker/pull/3783)] - chore(deps): update pre-commit hook golangci/golangci-lint to v1.59.1 \[[#&#8203;3782](https://github.com/woodpecker-ci/woodpecker/pull/3782)] - fix(deps): update codeberg.org/mvdkleijn/forgejo-sdk/forgejo digest to [`168c988`](https://github.com/woodpecker-ci/woodpecker/commit/168c988) \[[#&#8203;3776](https://github.com/woodpecker-ci/woodpecker/pull/3776)] - chore(deps): lock file maintenance \[[#&#8203;3750](https://github.com/woodpecker-ci/woodpecker/pull/3750)] - chore(deps): update gitea/gitea docker tag to v1.22 \[[#&#8203;3749](https://github.com/woodpecker-ci/woodpecker/pull/3749)] - Fix setting name \[[#&#8203;3744](https://github.com/woodpecker-ci/woodpecker/pull/3744)] </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTkuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM5OS44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.csprung.de/carsten/container-server/pulls/48 Co-authored-by: Renovate Bot <renovate@git.csprung.de> Co-committed-by: Renovate Bot <renovate@git.csprung.de>
2024-06-24 19:01:06 +02:00
image: woodpeckerci/woodpecker-agent:v2.6.0-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