miniflux/variables.yml
2024-01-26 22:16:47 +01:00

52 lines
1.1 KiB
YAML

---
# Name of this instance (controls job and service name)
instance: miniflux
miniflux:
# Number of instance to run
count: 1
# Docker image to use
image: '[[ .docker.repo ]]miniflux:2.0.51-1'
# Resources for the container
resources:
cpu: 50
memory: 192
wait_for:
- service: master.postgres[[ .consul.suffix ]]
consul:
connect:
upstreams:
- destination_name: 'postgres[[ .consul.suffix ]]'
local_bind_port: 5432
postgres:
database: '[[ .instance ]]'
user: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}{{ .Data.username }}{{ end }}'
password: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}{{ .Data.password }}{{ end }}'
vault:
policies:
- '[[ .instance ]][[ .consul.suffix ]]'
# Additional env var to pass to the container
env: {}
# Public URL of the service
public_url: https://flux.example.org
# Traefik settings
traefik:
middlewares:
- compression@file
- csp-relaxed@file
# Prometheus configuration
prometheus:
metrics_url: http://localhost:8085/metrics