version: '3' networks: default: external: name: nginx-proxy services: nginx-proxy: image: jwilder/nginx-proxy environment: - DEFAULT_HOST=hello.local ports: - 80:80 volumes: - /var/run/docker.sock:/tmp/docker.sock:ro hello: image: nginx:alpine environment: - VIRTUAL_HOST=hello.local volumes: - ./index.html:/usr/share/nginx/html/index.html