52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
---
|
|
woodpecker_svc:
|
|
domain: "{{ all_services | service_get_domain(role_name) }}"
|
|
port: 8000
|
|
extra_svcs:
|
|
- domain: agents.ci.serguzim.me
|
|
docker_host: h2c://woodpecker
|
|
port: 9000
|
|
db:
|
|
host: "{{ postgres.host }}"
|
|
port: "{{ postgres.port }}"
|
|
database: "{{ opentofu.postgresql_data.woodpecker.database }}"
|
|
user: "{{ opentofu.postgresql_data.woodpecker.user }}"
|
|
pass: "{{ opentofu.postgresql_data.woodpecker.pass }}"
|
|
|
|
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:
|
|
watchtower: true
|
|
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:
|