Update testweb/docker-compose.yml
This commit is contained in:
@@ -7,8 +7,9 @@ services:
|
||||
image: httpd:2.4.65-alpine
|
||||
container_name: testweb
|
||||
deploy:
|
||||
# placement:
|
||||
# constraints: [node.role == worker]
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.target != here
|
||||
replicas: 1
|
||||
restart: on-failure
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user