volumes: nginx_conf: services: web: image: web expose: - "80" environment: WEB_PORTS: 80 VIRTUAL_HOST: web.nginx-proxy.tld web-server-tokens-off: image: web expose: - "80" environment: WEB_PORTS: 80 VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld SERVER_TOKENS: "off" sut: profiles: - singleContainer image: nginxproxy/nginx-proxy:test volumes: - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro - &certs ./certs:/etc/nginx/certs:ro sut-dockergen: profiles: - separateContainers image: nginxproxy/nginx-proxy:test-dockergen volumes: - &confVolume nginx_conf:/etc/nginx/conf.d - *dockerSocket - *certs sut-nginx: profiles: - separateContainers container_name: nginx-proxy image: nginx:alpine volumes: - *confVolume - *certs labels: - "com.github.nginx-proxy.nginx-proxy.nginx"