services:
  admin:
    build:
      context: .
      dockerfile: Dockerfile
    image: nxtgauge-admin-solid:local
    container_name: nxtgauge-admin-solid
    environment:
      HOST: 0.0.0.0
      PORT: 9102
      NODE_OPTIONS: --max-old-space-size=256
      GATEWAY_URL: http://host.docker.internal:9100
    ports:
      - "9202:9102"
    restart: unless-stopped
    mem_limit: 512m
    cpus: 0.75
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1:9102/"]
      interval: 30s
      timeout: 5s
      retries: 5
      start_period: 20s
