Files
infrahub-deployment/docker-compose.override.yml
Damien 6c17c5a492 chore(docker): centralize infrahub configuration variables
Introduces an `x-infrahub-config` extension field to the docker-compose file. This block aggregates all Infrahub environment variables (AWS, DB, Broker, Cache, etc.) into a reusable anchor (`&infrahub_config`).

This change allows for:
- Centralized management of configuration options.
- Improved visibility of available settings matching the official documentation.
- Easier injection of these variables into dependent services via the new anchor.
2026-02-05 11:20:17 +01:00

31 lines
666 B
YAML

services:
# === TAILSCALE ===
tailscale:
image: tailscale/tailscale:latest
container_name: infrahub-tailscale
hostname: infrahub
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve-config.json
volumes:
- tailscale-state:/var/lib/tailscale
- ./serve-config.json:/config/serve-config.json:ro
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: unless-stopped
# === Infrahub ===
message-queue:
ports: !override
[]
database:
ports: !override
[]
infrahub-server:
ports: !override
[]
volumes:
tailscale-state: