dream-setup/docker-compose.yml

38 lines
842 B
YAML
Raw Normal View History

2025-01-07 17:22:49 +01:00
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:
2025-01-07 17:23:29 +01:00
- "<ipv4>:80:80"
- "[<ipv6>]:80:80"
- "<ipv4>:443:443"
- "[<ipv6>]:443:443"
- "<ipv4>:443:443/udp" # QUIC
- "[<ipv6>]:443:443/udp"
2025-01-07 17:22:49 +01:00
depends_on:
2025-01-07 17:23:29 +01:00
- <replace>
2025-01-07 17:22:49 +01:00
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: