-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathswarm-stack.yml
85 lines (84 loc) · 2.27 KB
/
swarm-stack.yml
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
82
83
84
85
version: '3.5'
services:
mfsmaster-1:
image: katharostech/lizardfs
command: master ha master
restart: on-failure
networks:
- hostnet
environment:
MFSMASTER_PERSONALITY: ha-cluster-managed
MFSMASTER_ADMIN_PASSWORD: password
MFSMASTER_MASTER_HOST: 192.168.0.100
MFSMASTER_MATOML_LISTEN_PORT: 9419
MFSMASTER_MATOCS_LISTEN_PORT: 9420
MFSMASTER_MATOCL_LISTEN_PORT: 9421
MFSMASTER_MATOTS_LISTEN_PORT: 9424
LIZARDFS_URAFT_URAFT_NODE_ADDRESS: localhost:9420
LIZARDFS_URAFT_URAFT_NODE_ADDRESS: localhost:9520
LIZARDFS_URAFT_URAFT_NODE_ADDRESS: localhost:9620
LIZARDFS_URAFT_URAFT_ID: 0
LIZARDFS_URAFT_URAFT_FLOATING_IP: 192.168.0.100
LIZARDFS_URAFT_URAFT_FLOATING_NETMASK: 255.255.255.0
LIZARDFS_URAFT_URAFT_FLOATING_IFACE: eth0
volumes:
- /var/lib/mfs
metalogger:
image: katharostech/lizardfs
command: metalogger
restart: on-failure
networks:
- hostnet
environment:
MFSMETALOGGER_MASTER_HOST: 192.268.0.100
volumes:
- /var/lib/mfs
chunkserver:
image: katharostech/lizardfs
command: chunkserver
restart: on-failure
networks:
- hostnet
environment:
# This lets you run the chunkserver with less available disk space
MFSCHUNKSERVER_HDD_LEAVE_SPACE_DEFAULT: 20Mi # 4Gi is the default
MFSCHUNKSERVER_MASTER_HOST: 192.168.0.100
MFSHDD_1: /mnt/mfshdd
volumes:
- /mnt/mfshdd
cgiserver:
image: katharostech/lizardfs
command: cgiserver
restart: on-failure
networks:
- hostnet
client1:
image: katharostech/lizardfs
command: client /mnt/mfs
restart: on-failure
networks:
- hostnet
# Required permissions and devices for container to mount filesystem
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
client2:
image: katharostech/lizardfs
command: client /mnt/mfs -H 192.168.99.100
restart: on-failure
networks:
- hostnet
# Required permissions and devices for container to mount filesystem
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
networks:
hostnet:
external: true
name: host