services:
  openrailrouting:
    build: .
    container_name: openrailrouting
    restart: unless-stopped
    expose:
      - "8988"
    volumes:
      - openrailrouting-data:/data
      - ./config.yml:/app/config.yml:ro
    environment:
      - JAVA_OPTS=-Xmx16g -Xms4g
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8988/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 600s
    networks:
      dokploy-network:
        aliases:
          - openrailrouting

volumes:
  openrailrouting-data:

networks:
  dokploy-network:
    external: true
