dream-setup/docker-compose.yml

38 lines
No EOL
842 B
YAML

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:
- ./nginx:/etc/nginx
- ./html:/var/www/html:ro
- ssl-certs:/etc/ssl:ro
ports:
- "<ipv4>:80:80"
- "[<ipv6>]:80:80"
- "<ipv4>:443:443"
- "[<ipv6>]:443:443"
- "<ipv4>:443:443/udp" # QUIC
- "[<ipv6>]:443:443/udp"
depends_on:
- <replace>
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: