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: ${PRIMARYIP} SMB_FORWARD: ${FORWARDERIP} SMB_RPC_PORTS: 49152-49200 SMB_WEB_PORTS: 8081 SMB_PURPOSE: "primary" SMB_USEBIND9: "false" #RSY_SECONDARY: ${SECONDARYIP} #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: addc dns: - ${PRIMARYIP} dns_search: - example.net privileged: true volumes: samba_etc: samba_lib: bind_etc: bind_lib: lam: