Files
compose-anything/src/postgres/README.md
2025-09-24 14:16:10 +08:00

692 B

Postgres

English | 中文

This service deploys a PostgreSQL database.

Services

  • postgres: The PostgreSQL database service.

Configuration

  • POSTGRES_VERSION: The version of the PostgreSQL image, default is 17.6.
  • POSTGRES_USER: The database username, default is postgres.
  • POSTGRES_PASSWORD: The database password, default is postgres.
  • POSTGRES_DB: The database name, default is postgres.
  • POSTGRES_PORT: The host port for PostgreSQL, default is 5432.

Volumes

  • postgres_data: A volume for storing PostgreSQL data.
  • init.sql: Optional initialization script (mount to /docker-entrypoint-initdb.d/init.sql).