fix: properly recreate container on deploy
Use 'docker compose down' then 'up' instead of --no-recreate to ensure the new image is used and avoid network connection errors.
This commit is contained in:
@@ -64,7 +64,6 @@ jobs:
|
||||
- name: Deploy dev
|
||||
run: |
|
||||
export DOCKER_API_VERSION=1.43
|
||||
# Use --no-recreate to avoid network issues, just restart with new image
|
||||
docker compose -f /nas-dashboard/docker-compose.dev.yml up -d --no-recreate --pull never || \
|
||||
# If container doesn't exist, create it
|
||||
# Stop and remove old container, then create with new image
|
||||
docker compose -f /nas-dashboard/docker-compose.dev.yml down || true
|
||||
docker compose -f /nas-dashboard/docker-compose.dev.yml up -d --pull never
|
||||
|
||||
Reference in New Issue
Block a user