-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose_docker_swarm_sshfs.yaml
More file actions
81 lines (77 loc) · 1.58 KB
/
compose_docker_swarm_sshfs.yaml
File metadata and controls
81 lines (77 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
ubuntu_kernel_dev:
image: 192.168.178.43:5000/ubuntu_kernel_dev
deploy:
replicas: 1
placement:
constraints:
- node.hostname == buildhost
ports:
- "9090:8080"
volumes:
- /kernel_dev:/kernel_dev
ubuntu_kernel_test:
image: 192.168.178.43:5000/ubuntu_kernel_test
deploy:
replicas: 1
ports:
- "9080:3389"
- "9091:8080"
volumes:
- sshfs_kernel:/kernel_dev
portainer:
image: 192.168.178.43:5000/portainer-ce
deploy:
restart_policy:
condition: any
replicas: 1
placement:
constraints:
- node.hostname == docker-manager-node
ports:
- "8000:8000"
- "9443:9443"
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data:
sshfs_kernel:
driver: vieux/sshfs
driver_opts:
sshcmd: "christian@192.168.178.43:/kernel_dev"
password: "<password>"
# cat /etc/docker/daemon.json
# {
# "insecure-registries": ["192.168.178.43:5000"]
# }
#
# sudo systemctl restart docker
#
# Docker Swarm:
#
# docker swarm init --advertise-addr 192.168.178.123
#
# ssh christian@192.168.178.43 "docker swarm join --token <TOKEN> 192.168.178.123:2377"
#
# docker node ls
#
# docker plugin install vieux/sshfs
#
# sudo systemctl restart docker
#
# docker plugin ls
#
# docker stack deploy -c compose.yaml mystack
#
# docker stack ps mystack
#
# docker ps -a
#
# docker exec -it 115198cda715 bash
#
# Worker: docker swarm leave
#
# Manager: docker swarm leave --force
#