23 lines
760 B
YAML
23 lines
760 B
YAML
---
|
|
version: "3.8"
|
|
|
|
# Point Keila at a database you run elsewhere, instead of compose.db.postgres.yml.
|
|
#
|
|
# Keila takes one connection URL with the password embedded, so insert the provider's whole string as the `db_url` secret. The entrypoint exports it as DB_URL and skips assembling one, keeping the password out of the env file.
|
|
#
|
|
# abra app secret insert <app> db_url v1 'postgres://user:pw@db.example.com:5432/keila'
|
|
#
|
|
# Managed providers usually also want DB_ENABLE_SSL=true. Add compose.db.cert.yml if the certificate needs a CA bundle you supply.
|
|
#
|
|
# Do not enable this alongside compose.db.postgres.yml.
|
|
|
|
services:
|
|
app:
|
|
secrets:
|
|
- db_url
|
|
|
|
secrets:
|
|
db_url:
|
|
external: true
|
|
name: ${STACK_NAME}_db_url_${SECRET_DB_URL_VERSION:-v1}
|