version: '3.8' services: postgres: image: postgres:14-alpine container_name: aurganize-postgres restart: always environment: # Superuser credentials (for initialization only) POSTGRES_USER: postgres POSTGRES_PASSWORD: "dev_pass_aurganize@v6.2" POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8" ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./init-scripts:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 volumes: postgres_data: