fix docker networks

This commit is contained in:
Matthias Hochmeister
2026-02-27 13:47:17 +01:00
parent abd7c041f4
commit 04d4f89834

View File

@@ -12,7 +12,7 @@ services:
- postgres_data_prod:/var/lib/postgresql/data - postgres_data_prod:/var/lib/postgresql/data
- ./backend/src/database/migrations:/docker-entrypoint-initdb.d:ro - ./backend/src/database/migrations:/docker-entrypoint-initdb.d:ro
networks: networks:
- feuerwehr_network - dashboard-backend
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-prod_user} -d ${POSTGRES_DB:-feuerwehr_prod}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-prod_user} -d ${POSTGRES_DB:-feuerwehr_prod}"]
interval: 10s interval: 10s
@@ -47,7 +47,7 @@ services:
postgres: postgres:
condition: service_healthy condition: service_healthy
networks: networks:
- feuerwehr_network - dashboard-backend
healthcheck: healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"] test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s interval: 30s
@@ -78,8 +78,8 @@ services:
backend: backend:
condition: service_healthy condition: service_healthy
networks: networks:
- feuerwehr_network - frontend
- traefik_frontend - dashboard-backend
healthcheck: healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"] test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"]
interval: 30s interval: 30s
@@ -93,8 +93,6 @@ volumes:
driver: local driver: local
networks: networks:
feuerwehr_network: frontend:
driver: bridge
traefik_frontend:
external: true external: true
name: frontend dashboard-backend: