bounca/variables.yml
2023-11-15 22:44:50 +01:00

42 lines
1.2 KiB
YAML

---
bounca:
# Name of this instance (controls job and service name)
instance: bounca
# The image to use
image: danielberteaud/bounca:0.4.4-1
# Env variable to pass to the container
env:
BOUNCA_DB_USER: '{{ with secret "[[ .vault.prefix ]]/database/creds/[[ .bounca.instance ]]" }}{{ .Data.username }}{{ end }}'
BOUNCA_DB_PASSWORD: '{{ with secret "[[ .vault.prefix ]]/database/creds/[[ .bounca.instance ]]" }}{{ .Data.password }}{{ end }}'
BOUNCA_DJANGO_SECRET: '{{ with secret "[[ .vault.prefix ]]/kv/service/[[ .bounca.instance ]]" }}{{ .Data.data.django_secret }}{{ end }}'
# 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
traefik:
enabled: true
# Resource allocation for the main bounca task
resources:
cpu: 200
memory: 192