services:
  katheryn-frontend:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        - DIRECTUS_API_TOKEN=katheryn-frontend-readonly-8591de0316ded82fab45328cf1e49cb1
    container_name: katheryn-frontend
    restart: unless-stopped
    environment:
      - NEXT_PUBLIC_DIRECTUS_URL=https://katheryn-cms.jeffemmett.com
      - DIRECTUS_API_TOKEN=katheryn-frontend-readonly-8591de0316ded82fab45328cf1e49cb1
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.katheryn-staging.rule=Host(`katheryn-staging.jeffemmett.com`)"
      - "traefik.http.routers.katheryn-staging.entrypoints=web"
      - "traefik.http.services.katheryn-staging.loadbalancer.server.port=3000"
    networks:
      - traefik-public

networks:
  traefik-public:
    external: true
