services:
  frontend:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        NEXT_PUBLIC_BACKEND_URL: ${NEXT_PUBLIC_BACKEND_URL:-https://apissm.gainrhino.com}
    environment:
      NEXT_PUBLIC_BACKEND_URL: ${NEXT_PUBLIC_BACKEND_URL:-https://apissm.gainrhino.com}
      NODE_ENV: production
    ports:
      - "3000:3000"
    volumes:
      - next_cache:/app/.next
    restart: unless-stopped

volumes:
  next_cache:
    name: photoapi_frontend_next_cache
