mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
fix: Only deploy nginx on Swarm managers
This commit is contained in:
@@ -3,6 +3,9 @@ services:
|
||||
image: ghcr.io/2martens/docker-nginx:test
|
||||
deploy:
|
||||
mode: global
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
|
||||
Reference in New Issue
Block a user