Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
476fda7203 |
@@ -1,9 +1,13 @@
|
|||||||
https://:{$FRONTEND_SSL_PORT} {
|
# TFM aInventory - Caddy Static Internal Configuration
|
||||||
|
# We use standard ports 443/444 internally to decouple from host-side dynamic ports.
|
||||||
|
|
||||||
|
https://:443 {
|
||||||
tls internal
|
tls internal
|
||||||
reverse_proxy frontend:3000
|
reverse_proxy frontend:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
https://:{$BACKEND_SSL_PORT} {
|
# Backend SSL Proxy
|
||||||
|
https://:444 {
|
||||||
tls internal
|
tls internal
|
||||||
reverse_proxy backend:8000
|
reverse_proxy backend:8000
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,11 @@ fi
|
|||||||
echo "🚀 Building and starting containers..."
|
echo "🚀 Building and starting containers..."
|
||||||
docker compose --env-file inventory.env up -d --build --remove-orphans
|
docker compose --env-file inventory.env up -d --build --remove-orphans
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "🔍 Verifying port mapping..."
|
||||||
|
docker compose ps --format "table {{.Name}}\t{{.Status}}\t{{.Ports}}"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✅ Deployment requested."
|
echo "✅ Deployment requested."
|
||||||
echo " Access URL: https://${SERVER_IP:-localhost}:${FRONTEND_SSL_PORT:-8919}"
|
echo " Access URL: https://${SERVER_IP:-localhost}:${FRONTEND_SSL_PORT:-8919}"
|
||||||
echo " Run 'docker compose ps' to check status."
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- inventory_net
|
- inventory_net
|
||||||
ports:
|
ports:
|
||||||
- ${BACKEND_SSL_PORT:-3002}:${BACKEND_SSL_PORT:-3002}
|
- ${BACKEND_SSL_PORT:-8918}:444
|
||||||
- ${FRONTEND_SSL_PORT:-3003}:${FRONTEND_SSL_PORT:-3003}
|
- ${FRONTEND_SSL_PORT:-8919}:443
|
||||||
env_file:
|
env_file:
|
||||||
- inventory.env
|
- inventory.env
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user