version: '3.8' services: postgres: image: postgres:15 container_name: postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres volumes: - ./backend/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql - postgres_data:/var/lib/postgresql/data ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: