Allow the localhost instance to be accessible even without a local Traefik instance running.

This commit is contained in:
Hemang
2025-02-18 09:59:53 +01:00
parent ea4937197f
commit e898941597
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -15,8 +15,10 @@ services:
target: /srv/proxy
networks:
- invariant-explorer-web
ports: []
ports:
- "8005:8000" # Direct access without Traefik
labels:
# For access via Traefik
- "traefik.enable=true"
- "traefik.http.routers.explorer-proxy-api.rule=(Host(`localhost`) && PathPrefix(`/api/v1/proxy/`)) || (Host(`127.0.0.1`) && PathPrefix(`/api/v1/proxy/`))"
- "traefik.http.routers.explorer-proxy-api.entrypoints=invariant-explorer-web"
+2 -2
View File
@@ -6,8 +6,8 @@ up() {
# Start your local docker-compose services
docker compose -f docker-compose.local.yml up -d
echo "Proxy started at http://localhost/api/v1/proxy/"
echo "See http://localhost/api/v1/proxy/docs for API documentation"
echo "Proxy started at http://localhost:8005/api/v1/proxy/"
echo "See http://localhost:8005/api/v1/proxy/docs for API documentation"
}
build() {