fix: remove networks from compose, connect manually after
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 1m22s
Run Tests / Backend Tests (push) Failing after 16m26s
Run Tests / Frontend Tests (push) Failing after 1m44s
Run Tests / Test Summary (push) Failing after 22s

Docker compose fails to connect to multiple external networks during
container creation. Create container first, then manually connect.
This commit is contained in:
Gan, Jimmy
2026-04-06 21:04:54 +08:00
parent c6cf757d6b
commit cc3c56f7df
2 changed files with 5 additions and 4 deletions
+5 -1
View File
@@ -77,5 +77,9 @@ jobs:
docker network create nas-dashboard_internal docker network create nas-dashboard_internal
fi fi
# Deploy with compose # Deploy with compose (without networks in compose file)
docker compose -f docker-compose.dev.yml -p nas-dashboard-dev up -d --build --pull never docker compose -f docker-compose.dev.yml -p nas-dashboard-dev up -d --build --pull never
# Manually connect to networks after container is created
docker network connect nas-dashboard_internal nas-dashboard-dev || true
docker network connect gitea_gitea nas-dashboard-dev || true
-3
View File
@@ -45,9 +45,6 @@ services:
retries: 3 retries: 3
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
networks:
- nas-dashboard_internal
- gitea_gitea
logging: logging:
driver: json-file driver: json-file
options: options: