docker-compose.yml 528 Bytes
services:
  postgres:
    image: postgres:16-alpine
    container_name: robot-production-system-postgres
    environment:
      POSTGRES_DB: robot_production_system
      POSTGRES_USER: robot
      POSTGRES_PASSWORD: robot
    ports:
      - "55432:5432"
    volumes:
      - robot-production-system-postgres:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U robot -d robot_production_system"]
      interval: 5s
      timeout: 5s
      retries: 10

volumes:
  robot-production-system-postgres: