services: postgres: image: postgres:16-alpine environment: POSTGRES_DB: saas_voc POSTGRES_USER: saas_voc_owner POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in the shell} ports: - "127.0.0.1:54329:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U saas_voc_owner -d saas_voc"] interval: 5s timeout: 3s retries: 10 volumes: - saas_voc_postgres:/var/lib/postgresql/data volumes: saas_voc_postgres: