version: '3'

services:
  # database:
  #   build: ./database
  #   restart: unless-stopped
  #   container_name: pd_database
  #   volumes:
  #     - ./storage:/usr/src/app/storage
  #     - ./logs:/usr/src/app/logs
  #   ports:
  #     - 811:80
  #   environment:
  #     - TESTING=False
  #     - LOG_LEVEL=INFO
  #     - API_TOKEN=${API_TOKEN}
  #     - TZ=America/Chicago
  #     - WORKERS_PER_CORE=1.5
  #     # - PYTHONHASHSEED=1749583062

  database-v2:
    # build: ./database-v2
    image: manticorum67/paper-dynasty-database:1.5
    restart: unless-stopped
    container_name: pd_database_v2
    volumes:
      - ./storage:/usr/src/app/storage
      - ./logs:/usr/src/app/logs
    ports:
      - 815:80
    environment:
      - TESTING=False
      - LOG_LEVEL=INFO
      - API_TOKEN=${API_TOKEN}
      - TZ=America/Chicago
      - WORKERS_PER_CORE=1.5
      - WORKER_TIMEOUT=180
      - TIMEOUT=180
