Good afternoon
My english and google translator
I’m trying to create a high availability samba server, I’ve tried to create using two samba + ctdb containers and two with glsuterfs to have redundancy, but the gluster was slow.
Now I’m trying to use the docker compose to create an .yml file to build a samba container, with a macvlan network, but I can’t use the network on the compose docker. can anybody help me?
follows the yml file
thanks
version: ‘3.4’
services:
samba:
image: e2014438b943
environment:
TZ: ‘EST5EDT’
networks:
pub_net2:
ipv4_address: 10.0.254.203
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
read_only: true
tmpfs:
- /tmp
restart: unless-stopped
stdin_open: true
tty: true
volumes:
- /mnt:/mnt:z
- /mnt2:/mnt2:z
- /dados:/dados:z
command: '-s "Mount;/mnt" -s "Bobs Volume;/mnt2;yes;no;no;bob" -u "bob;bobspasswd"'
networks:
pub_net2:
#name: pub_net2
driver: macvlan
driver_opts:
parent: eth1.20
ipam:
config:
- subnet: 10.0.0.0/16
gateway: 10.0.0.1
###########Docker info################
docker info
Client:
Debug Mode: false
Server:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 5
Server Version: 19.03.5
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: active
NodeID: vl5bcspooagqeyu0j1wfhbtwa
Is Manager: true
ClusterID: eoi6bfaw9gd5pdqdm3qbfb627
Managers: 3
Nodes: 3
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 172.20.106.250
Manager Addresses:
172.20.106.250:2377
172.20.106.251:2377
172.20.106.252:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.18.0-147.3.1.el8_1.x86_64
Operating System: CentOS Linux 8 (Core)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.682GiB
Name: samba-zeus-ssti
ID: ZDGZ:GNTL:NPN3:IRBO:LQZN:5JOC:QUO2:SQUP:QCNO:4LVK:JXQI:MVLP
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false