version: "3.9" services: samba: build: ./ image: custom/samba:1.0.0 container_name: samba restart: unless-stopped environment: TZ: Asia/Tokyo SMB_REALM: EXAMPLE.NET SMB_DOMAIN: HOGEDOMAIN SMB_ADMINPASS: p@ssword123 SMB_HOSTIP: ${SECONDARYIP} SMB_FORWARD: ${FORWARDERIP} SMB_RPC_PORTS: 49152-49200 SMB_WEB_PORTS: 8081 SMB_PURPOSE: "secondary" SMB_USEBIND9: "false" RSY_PRIMARY: ${PRIMARYIP} RSY_PASS: p@ssword234 volumes: - samba_etc:/etc/samba - samba_lib:/var/lib/samba - bind_etc:/etc/bind - bind_lib:/var/lib/bind - lam:/var/lib/ldap-account-manager network_mode: "host" hostname: addc2 dns: - ${SECONDARYIP} dns_search: - example.net privileged: true volumes: samba_etc: samba_lib: bind_etc: bind_lib: lam: