You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/labs/docker-swarm/docker-compose.yml

18 lines
546 B

#docker swarm join --token SWMTKN-1-3ezrtc4zmt0e4ew0udop4kcv56d4ryny8q2uroeryt64e9mb14-5dad5of7vve00dxnav90nyv0k 192.168.65.3:2377
version: "3.8"
services:
web:
image: nginx:1.18
ports:
- 80:80
- 443:443
volumes:
- nginx-sshfs:/var/log/nginx
volumes:
nginx-sshfs:
#docker plugin install vieux/sshfs
driver: vieux/sshfs:latest
driver_opts:
sshcmd: root@host.docker.internal:$PWD/data/nginx
password: root
allow_other: ""