fix: remove networks from compose, connect manually after
Docker compose fails to connect to multiple external networks during container creation. Create container first, then manually connect.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user