Add Caddy simple setup

This commit is contained in:
2025-01-26 00:51:34 -03:00
parent 72e1fabd98
commit 9b88311406
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Static content server
domain.com {
root * /srv/static
file_server
}
# Reverse proxy
ssl.test.benitez.ar {
reverse_proxy * http://{CONTAINER_NAME}:{CONTAINER_PORT}
}

View File

@@ -0,0 +1,19 @@
services:
caddy:
image: caddy:latest
container_name: caddy
ports:
- "80:80"
- "443:443"
volumes:
- ./settings:/etc/caddy
- ./static:/srv/static
- ./caddy_data:/data
- ./caddy_config:/config
restart: unless-stopped
networks:
- caddy_net
networks:
caddy_net: # Crete VPN internal - Need to bind running containers to this network as well
driver: bridge