Add caddy_net for allowing VPN access to containers from the WebServer

This commit is contained in:
2025-01-25 04:42:51 -03:00
parent eaca8f8dbd
commit 72e1fabd98
4 changed files with 9 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ services:
caddy:
image: caddy:latest
container_name: caddy
network_mode: "host" # Allow access to local networks (EX: Backend running on port 3000)
ports:
- "80:80"
- "443:443"
@@ -12,3 +11,9 @@ services:
- ./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