One minute
Docker sshfs volume
docker plugins
docker plugin install --grant-all-permissions vieux/sshfs
docker-compose.yml
version: '3.7'
services:
CDN:
build: ../CDN
image: v8.geekzoo.guru/cdn:dev
hostname: v8
networks:
- ingres
volumes:
- cache:/usr/local/var/cache/squid
- sshfs:/shared_data
deploy:
replicas: 1
endpoint_mode: dnsrr
labels:
- "traefik.enable=true"
- "sub=cdn"
- "traefik.http.services.cdn.loadbalancer.server.port=80"
- "traefik.docker.network=custom_backend"
placement:
constraints:
- node.role == manager
- node.hostname != aws-builder-1
configs:
- source: cdn_one
target: /usr/local/etc/squid.conf
uid: '0'
gid: '0'
mode: 0640
volumes:
cache:
driver: local
sshfs:
driver: vieux/sshfs
driver_opts:
sshcmd: "user@yourHost:/home/user"
password: "passwd"
configs:
cdn_one:
file: ./squid.conf
networks:
ingres:
external: false
name: custom_ingres
driver: overlay
86 Words
2019-11-06 00:55 +0000
Read other posts