Add network

This commit is contained in:
2025-07-08 16:27:43 +05:30
parent f076855e32
commit 601ec06611
10 changed files with 71 additions and 51 deletions

View File

@@ -4,9 +4,6 @@ services:
container_name: caddy
cap_add:
- NET_ADMIN
networks:
proxy:
ipv4_address: 172.30.0.2
environment:
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
volumes:
@@ -19,13 +16,10 @@ services:
- ${HTTP_PORT}:80
- ${HTTPS_PORT}:443
- ${HTTPS_PORT}:443/udp
networks:
- frontend
restart: unless-stopped
networks:
proxy:
name: proxy
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
gateway: 172.30.0.1
frontend:
external: true