Add node label constraint to service placement
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m59s

- Add node label constraint
- Remove redundant constraint
- Update healthcheck start period
- Ensure consistent formatting
- Maintain overlay network driver
This commit is contained in:
2025-02-28 22:08:39 +00:00
parent be8ed1eb89
commit 7f43b94429

View File

@@ -57,13 +57,13 @@ services:
max_attempts: 3 max_attempts: 3
placement: placement:
constraints: constraints:
- node.labels.reskreen-ready==true
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"] test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 60s start_period: 60s
- node.labels.reskreen-ready==true
networks: networks:
default: default:
driver: overlay driver: overlay