1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
version: "3" services: nginx: image: nginx:stable networks: - mainnet ports: - "172.16.0.1:80:80" restart: unless-stopped volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro - ./srv:/srv:ro cap_drop: - ALL cap_add: - CHOWN - SETGID - SETUID networks: mainnet: