Files
appwrite/compose/postgresql.yml
T
loks0nandClaude Sonnet 4.6 46cf1d6fc6 Replace database env overrides with per-database compose files
Move MariaDB and PostgreSQL into compose/ overlay files instead of
starting all three databases and switching via env vars. MongoDB stays
in the base compose as the default. CI uses COMPOSE_ENV_FILES at the
job level to load the correct env file per matrix database entry.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 23:32:57 +01:00

36 lines
758 B
YAML

x-logging: &x-logging
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
services:
mongodb:
scale: 0
postgresql:
image: appwrite/postgres:0.1.0
container_name: appwrite-postgresql
<<: *x-logging
networks:
- appwrite
volumes:
- appwrite-postgresql:/var/lib/postgresql/18/data:rw
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${_APP_DB_SCHEMA}
- POSTGRES_USER=${_APP_DB_USER}
- POSTGRES_PASSWORD=${_APP_DB_PASS}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${_APP_DB_USER} -d ${_APP_DB_SCHEMA}"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
command: "postgres"
volumes:
appwrite-postgresql: