Add the label target = here to ensure application runs where I want it to run
18 lines
345 B
YAML
18 lines
345 B
YAML
services:
|
|
gotify:
|
|
image: gotify/server:latest
|
|
volumes:
|
|
- /mnt/cephfs/docker/gotify:/app/data
|
|
restart: unless-stopped
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.labels.target == here
|
|
ports:
|
|
- 8111:80
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
environment:
|
|
- TZ=Europe/London
|
|
|