volumes: nginx_conf: services: nginx-proxy: profiles: - singleContainer image: nginxproxy/nginx-proxy:test volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/default_location:ro - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro nginx-proxy-nginx: profiles: - separateContainers container_name: nginx-proxy image: nginx:alpine volumes: - nginx_conf:/etc/nginx/conf.d:ro - ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/default_location:ro - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro labels: - "com.github.nginx-proxy.nginx-proxy.nginx" nginx-proxy-dockergen: profiles: - separateContainers image: nginxproxy/nginx-proxy:test-dockergen volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - nginx_conf:/etc/nginx/conf.d - ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/default_location:ro - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro web1: image: web expose: - "81" environment: WEB_PORTS: 81 VIRTUAL_HOST: web1.nginx-proxy.example web2: image: web expose: - "82" environment: WEB_PORTS: 82 VIRTUAL_HOST: web2.nginx-proxy.example web3: image: web expose: - "83" environment: WEB_PORTS: 83 VIRTUAL_HOST: web3.nginx-proxy.example