Skip to content

Instantly share code, notes, and snippets.

@rbocchinfuso
Created September 23, 2021 20:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rbocchinfuso/75a8421574367e02f78b53023b18c671 to your computer and use it in GitHub Desktop.
Caddy reverse proxy docker compose YAML file
version: "3.7"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
container_name: caddy
restart: unless-stopped
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
networks:
caddy:
external: true
volumes:
caddy_data: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment