services: kitestacks-portal-test: image: nginx:alpine container_name: kitestacks-portal-test restart: unless-stopped ports: - "3008:80" extra_hosts: - "host.docker.internal:host-gateway" volumes: - ./public:/usr/share/nginx/html:ro - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - metrics-api metrics-api: build: ./api container_name: kitestacks-metrics-api restart: unless-stopped pid: host network_mode: host # see host interfaces & routes for real network metrics environment: - HOST_PROC=/host/proc - HOST_SYS=/host/sys - HOST_ETC=/host/etc volumes: - /proc:/host/proc:ro - /sys:/host/sys:ro - /etc/os-release:/host/etc/os-release:ro - /etc/hostname:/host/etc/hostname:ro - /etc/localtime:/host/etc/localtime:ro - /:/host:ro - /var/run/docker.sock:/var/run/docker.sock:ro