2024-09-26 22:02:36 +00:00
|
|
|
---
|
|
|
|
woodpecker_svc:
|
2024-10-18 23:01:15 +00:00
|
|
|
domain: "{{ all_services | service_get_domain(role_name) }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
port: 8000
|
|
|
|
extra_svcs:
|
|
|
|
- domain: agents.ci.serguzim.me
|
|
|
|
docker_host: h2c://woodpecker
|
|
|
|
port: 9000
|
|
|
|
db:
|
|
|
|
host: "{{ postgres.host }}"
|
|
|
|
port: "{{ postgres.port }}"
|
2024-09-28 20:43:47 +00:00
|
|
|
database: "{{ opentofu.postgresql_data.woodpecker.database }}"
|
|
|
|
user: "{{ opentofu.postgresql_data.woodpecker.user }}"
|
|
|
|
pass: "{{ opentofu.postgresql_data.woodpecker.pass }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
|
|
|
|
woodpecker_env:
|
|
|
|
WOODPECKER_OPEN: true
|
|
|
|
WOODPECKER_HOST: https://{{ svc.domain }}
|
|
|
|
WOODPECKER_ADMIN: serguzim
|
|
|
|
WOODPECKER_AGENT_SECRET: "{{ vault_woodpecker.agent_secret }}"
|
|
|
|
WOODPECKER_PROMETHEUS_AUTH_TOKEN: "{{ vault_metrics_token }}"
|
|
|
|
|
|
|
|
WOODPECKER_SERVER: "{{ svc.extra_svcs[0].domain }}:443"
|
|
|
|
WOODPECKER_GRPC_SECURE: true
|
|
|
|
|
|
|
|
WOODPECKER_GITEA: true
|
|
|
|
WOODPECKER_GITEA_URL: https://git.serguzim.me
|
|
|
|
WOODPECKER_GITEA_CLIENT: "{{ vault_woodpecker.gitea.client }}"
|
|
|
|
WOODPECKER_GITEA_SECRET: "{{ vault_woodpecker.gitea.secret }}"
|
|
|
|
|
|
|
|
WOODPECKER_DATABASE_DRIVER: postgres
|
|
|
|
WOODPECKER_DATABASE_DATASOURCE: postgres://{{ svc.db.user }}:{{ svc.db.pass }}@{{ svc.db.host }}:{{ svc.db.port }}/{{ svc.db.database }}?sslmode=verify-full
|
|
|
|
|
|
|
|
woodpecker_compose:
|
2024-11-07 23:05:55 +00:00
|
|
|
watchtower: update
|
2024-09-26 22:02:36 +00:00
|
|
|
image: woodpeckerci/woodpecker-server
|
|
|
|
file:
|
|
|
|
services:
|
|
|
|
agent:
|
|
|
|
image: woodpeckerci/woodpecker-agent:latest
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: true
|
|
|
|
command: agent
|
|
|
|
env_file:
|
|
|
|
- service.env
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
networks:
|
|
|
|
default:
|