axiom-community-manager/composes/postgres/postgres.yml

29 lines
854 B
YAML

services:
postgres:
container_name: $APP_NAME-postgres
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_NON_ROOT_USER=${POSTGRES_NON_ROOT_USER:-$ADMIN_USER}
- POSTGRES_NON_ROOT_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD:-$POSTGRES_PASSWORD}
- N8N_DB
- UMAMI_DB
- LISTMONK_DB
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
healthcheck:
test:
[
'CMD-SHELL',
'pg_isready -h localhost -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}',
]
interval: 5s
timeout: 5s
retries: 10