version: "3.8" #https://github.com/nginx-proxy/nginx-proxy #https://github.com/nginx-proxy/acme-companion: volumes: certs: conf: acme: vhost.d: html: services: nginx: image: nginxproxy/nginx-proxy restart: always ports: - "80:80" - "443:443" volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - conf:/etc/nginx/conf.d - certs:/etc/nginx/certs:ro - vhost.d:/etc/nginx/vhost.d - html:/usr/share/nginx/html environment: SIZE_LIMIT: | client_max_body_size 0; proxy_request_buffering off; LOG_JSON: |- true labels: - com.github.nginx-proxy.nginx command: /bin/sh -c "echo \"$$SIZE_LIMIT\" > /etc/nginx/conf.d/nginx_size_limit.conf; forego start -r" deploy: placement: constraints: - node.hostname==odroid mode: replicated replicas: 1 networks: default: nginx_ingress: nginx_acme: image: nginxproxy/acme-companion restart: always volumes: - conf:/etc/nginx/conf.d - certs:/etc/nginx/certs - acme:/etc/acme.sh - vhost.d:/etc/nginx/vhost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/var/run/docker.sock:ro environment: - DEFAULT_EMAIL=rudolfss13@gmail.com depends_on: - nginx deploy: placement: constraints: - node.hostname==odroid mode: replicated replicas: 1 networks: default: networks: nginx_ingress: external: true