version: '3' services: proxy: image: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf ports: - 80:80 networks: - dbnet networks: dbnet: external: name: dbne http { upstream backend { server backend; } server { listen 80; location / { resolver 127.0.0.11 ipv6=off valid=10s; resolver_timeout 2s; set $backend backend:8080; proxy_pass http://$backend; proxy_buffering off; } } } events {}
Обсуждают сегодня