services: # ... services here # don't forget to networks: nginx to the proxied service nginx: image: nginx:alpine-slim # https://hub.docker.com/_/nginx restart: always networks: - nginx volumes: - ./conf/nginx:/etc/nginx - ./html:/var/www/html:ro - ssl-certs:/etc/ssl:ro ports: - ":80:80" - "[]:80:80" - ":443:443" - "[]:443:443" - ":443:443/udp" # QUIC - "[]:443:443/udp" depends_on: - acme: image: neilpang/acme.sh:latest # https://github.com/acmesh-official/acme.sh/wiki/Run-acme.sh-in-docker restart: always volumes: - acme-data:/acme.sh - ssl-certs:/etc/ssl - ./html:/var/www/html command: daemon networks: nginx: external: false volumes: ssl-certs: