services:
  # app:
  #   env_file:
  #     - .env
  #   build:
  #     context: .
  #     dockerfile: Dockerfile
  #   ports:
  #     - "${SERVER_PORT}:${SERVER_PORT}"
  #   depends_on:
  #     - postgres
  #     - mongodb
  #     - redis
  #   environment:
  #     # Server
  #     - SERVER_PORT=${SERVER_PORT}
  #     - SERVER_ENV=${SERVER_ENV}

  #     # Database
  #     - DB_HOST=${DB_HOST}
  #     - DB_PORT=${DB_PORT}
  #     - DB_USER=${DB_USER}
  #     - DB_PASSWORD=${DB_PASSWORD}
  #     - DB_NAME=${DB_NAME}
  #     - DB_SSL_MODE=${DB_SSL_MODE}

  #     # Redis
  #     - REDIS_ADDR=${REDIS_ADDR}
  #     - REDIS_PASSWORD=${REDIS_PASSWORD}
  #     - REDIS_DB=${REDIS_DB}
  #   networks:
  #     - app-network
  #   restart: unless-stopped

  postgres:
    image: postgres:17-alpine
    environment:
      - POSTGRES_USER=${DB_USER}
      - POSTGRES_PASSWORD=${DB_PASSWORD}
      - POSTGRES_DB=${DB_NAME}
    ports:
      - "8553:5432"
    volumes:
      - postgres_data:/var/lib/postgresql/data
    networks:
      - app-network
    restart: unless-stopped

  redis:
    image: redis:alpine
    ports:
      - "8554:6379"
    volumes:
      - redis_data:/data
    networks:
      - app-network
    restart: unless-stopped

networks:
  app-network:
    driver: bridge

volumes:
  postgres_data:
  mongodb_data:
  redis_data:
