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
|
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
|
||||||
|
Reference in New Issue
Block a user