bounca/variables.yml

61 lines
1.6 KiB
YAML
Raw Normal View History

2023-11-15 22:44:50 +01:00
---
# Name of this instance (controls job and service name)
instance: bounca
2023-11-15 22:44:50 +01:00
bounca:
2023-11-15 22:44:50 +01:00
# The image to use
2023-12-21 23:37:28 +01:00
image: danielberteaud/bounca:latest
2023-11-15 22:44:50 +01:00
vault:
2024-01-31 12:29:56 +01:00
# Vault policies to use
policies:
- '[[ .instance ]][[ .consul.suffix ]]'
2024-01-31 12:29:56 +01:00
# Random secrets to generate
rand_secrets:
fields:
- django_secret
postgres:
database: '[[ .instance ]]'
2024-01-31 12:29:56 +01:00
user: '{{ with secret "[[ .vault.root ]]/database/creds/[[ .instance ]]" }}{{ .Data.username }}{{ end }}'
password: '{{ with secret "[[ .vault.root ]]/database/creds/[[ .instance ]]" }}{{ .Data.password }}{{ end }}'
2023-11-15 22:44:50 +01:00
# Env variable to pass to the container
env:
BOUNCA_DB_NAME: '[[ .bounca.postgres.database ]]'
2024-01-31 12:29:56 +01:00
BOUNCA_DJANGO_SECRET: '{{ with secret "[[ .vault.root ]]/kv/service/[[ .instance ]]" }}{{ .Data.data.django_secret }}{{ end }}'
2023-11-15 22:44:50 +01:00
# Public URL where user can reach the app
public_url: https://pki.example.org
# Custom django settings
django_custom_settings: ""
# Wait for postgres to be ready before starting
wait_for:
- service: master.postgres[[ .consul.suffix ]]
# Connect to the postgres service through the service mesh]
consul:
connect:
upstreams:
- destination_name: postgres[[ .consul.suffix ]]
local_bind_port: 5432
# Traefik settings
2024-01-28 22:57:33 +01:00
traefik: {}
2023-11-15 22:44:50 +01:00
# Settings for /public, which can be different from the main interface
# /public expose certificates and CRL so it should usually be publicly accessible
public:
traefik:
2024-01-28 22:57:33 +01:00
auto_rule: false
router: '[[ .instance ]]-public[[ .consul.suffix ]]'
2023-11-15 22:44:50 +01:00
# Resource allocation for the main bounca task
resources:
cpu: 200
memory: 192