Attach frontend to external coolify network so Traefik can route
Coolify's Traefik defaults to the 'coolify' network, but the frontend was only on the per-resource network -> Traefik couldn't reach it (000/empty reply). Join the external coolify network + set traefik.docker.network=coolify. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,8 @@ services:
|
|||||||
# Persist the SQLite file across container rebuilds.
|
# Persist the SQLite file across container rebuilds.
|
||||||
- visigine_data:/data
|
- visigine_data:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
@@ -41,6 +43,18 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
# Join Coolify's proxy network so Traefik (which defaults to the `coolify`
|
||||||
|
# network) can reach this container, and point Traefik at that network
|
||||||
|
# explicitly since the container is attached to several.
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- coolify
|
||||||
|
labels:
|
||||||
|
- "traefik.docker.network=coolify"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
coolify:
|
||||||
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
visigine_data:
|
visigine_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user