Files
tymeslot/compose.db.external.yml
2026-09-17 12:59:36 +01:00

22 lines
744 B
YAML

---
version: "3.8"
# Point Tymeslot at a database you run elsewhere, instead of compose.db.postgres.yml.
#
# Insert the provider's full connection string as the `database_url` secret; the entrypoint exports it as DATABASE_URL, whose host, port, database, user and password take precedence over every discrete DATABASE_* variable. This keeps the password, which a connection URL embeds, out of the env file.
#
# abra app secret insert <app> database_url v1 \
# 'postgres://user:pw@db.example.com:5432/tymeslot'
#
# Do not enable this alongside compose.db.postgres.yml.
services:
app:
secrets:
- database_url
secrets:
database_url:
external: true
name: ${STACK_NAME}_database_url_${SECRET_DATABASE_URL_VERSION:-v1}