version: '2'

services:

  profiles-frontend:
    image: "nhsuk/profiles:${DOCKER_IMAGE_TAG}"
    environment:
      NODE_ENV: production
      HOTJAR_ANALYTICS_TRACKING_ID: ${HOTJAR_ID}
      GOOGLE_ANALYTICS_TRACKING_ID: ${GOOGLE_ID}
      WEBTRENDS_ANALYTICS_TRACKING_ID: ${WEBTRENDS_ID}
      MONGODB_HOST: profiles-db.profiles-db
    labels:
      traefik.enable: stack
      traefik.domain: ${TRAEFIK_DOMAIN}
      traefik.port: 3000
      io.rancher.container.pull_image: always
      io.rancher.scheduler.affinity:host_label_soft: c2s=true

version: '2'

services:

  profiles-frontend:
    image: "nhsuk/profiles:${DOCKER_IMAGE_TAG}"
    environment:
      NODE_ENV: production
      HOTJAR_ANALYTICS_TRACKING_ID: ${HOTJAR_ID}
      GOOGLE_ANALYTICS_TRACKING_ID: ${GOOGLE_ID}
      WEBTRENDS_ANALYTICS_TRACKING_ID: ${WEBTRENDS_ID}
      MONGODB_HOST: profiles-db.profiles-db
    labels:
      traefik.enable: stack
      traefik.domain: ${TRAEFIK_DOMAIN}
      traefik.port: 3000
      map-public-http: 3000
      io.rancher.container.pull_image: always
      io.rancher.scheduler.affinity:host_label_soft: c2s=true

Add HAProxy label for dynamic routing
Add HAProxy label for dynamic routing
