Add node label constraint to service placement
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m59s
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:
@@ -57,13 +57,13 @@ services:
|
||||
max_attempts: 3
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.reskreen-ready==true
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
- node.labels.reskreen-ready==true
|
||||
networks:
|
||||
default:
|
||||
driver: overlay
|
||||
|
Reference in New Issue
Block a user