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
|
image: ghcr.io/2martens/docker-nginx:test
|
||||||
deploy:
|
deploy:
|
||||||
mode: global
|
mode: global
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
ports:
|
ports:
|
||||||
- target: 80
|
- target: 80
|
||||||
published: 80
|
published: 80
|
||||||
|
|||||||
Reference in New Issue
Block a user