mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-05-26 16:37:47 +02:00
Allow the localhost instance to be accessible even without a local Traefik instance running.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user