version: '2'

services:

  c2s-frontend:
    image: "nhsuk/connecting-to-services:${DOCKER_IMAGE_TAG}"
    environment:
      NODE_ENV: production
      HOTJAR_ANALYTICS_TRACKING_ID: ${HOTJAR_ANALYTICS_TRACKING_ID}
      GOOGLE_ANALYTICS_TRACKING_ID: ${GOOGLE_ID}
      WEBTRENDS_ANALYTICS_TRACKING_ID: ${WEBTRENDS_ANALYTICS_TRACKING_ID}
      API_BASE_URL: 'http://nearby-services-api.nearby-services-api:3001'
    labels:
      traefik.enable: true
      traefik.frontend.rule: $TRAEFIK_RULE
      traefik.port: 3000
      map-public-http: 3000
      io.rancher.container.pull_image: always
      io.rancher.scheduler.affinity:host_label_soft: c2s=true

version: '2'

services:

  c2s-frontend:
    image: "nhsuk/connecting-to-services:${DOCKER_IMAGE_TAG}"
    environment:
      NODE_ENV: production
      HOTJAR_ANALYTICS_TRACKING_ID: ${HOTJAR_ANALYTICS_TRACKING_ID}
      GOOGLE_ANALYTICS_TRACKING_ID: ${GOOGLE_ID}
      WEBTRENDS_ANALYTICS_TRACKING_ID: ${WEBTRENDS_ANALYTICS_TRACKING_ID}
      API_BASE_URL: 'http://nearby-services-api.nearby-services-api:3001'
    labels:
      traefik.enable: true
      traefik.frontend.rule: $TRAEFIK_RULE
      traefik.port: 3000
      map-public-http: 3000
      io.rancher.container.pull_image: always
      io.rancher.scheduler.affinity:host_label_soft: c2s=true
    logging:
      driver: splunk
      options:
        splunk-url: ${SPLUNK_HEC_URL}
        splunk-token: ${SPLUNK_HEC_TOKEN}
        splunk-insecureskipverify: "true"
        splunk-sourcetype: docker
        splunk-source: connecting-to-services
        splunk-verify-connection: "false"
        tag: "{{`{{.ImageName}} {{.Name}} {{.FullID}}`}}"
        splunk-format: json

Send logs to Splunk in JSON
:rocket: Send logs to Splunk in JSON
