72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
|
version: "3.9"
|
||
|
services:
|
||
|
|
||
|
samba:
|
||
|
#image: ubuntu:jammy
|
||
|
build: ./
|
||
|
image: custom/samba:1.0.0
|
||
|
container_name: samba
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
TZ: Asia/Tokyo
|
||
|
SMB_REALM: HOGESERVER.HOGEDDNS.JP
|
||
|
SMB_DOMAIN: HOGEDOMAIN
|
||
|
SMB_ADMINPASS: p@ssword123
|
||
|
SMB_HOSTIP: ${RESTOREDIP}
|
||
|
SMB_RPC_PORTS: 49152-49200
|
||
|
SMB_PURPOSE: "restore"
|
||
|
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
|
||
|
networks:
|
||
|
samba:
|
||
|
ipv4_address: 172.26.0.103
|
||
|
ports:
|
||
|
- ${RESTOREDIP}:53:53 #DNS
|
||
|
- ${RESTOREDIP}:53:53/udp #DNS
|
||
|
- ${RESTOREDIP}:135:135 #End Point Mapper(WINS)
|
||
|
- ${RESTOREDIP}:137:137/udp #NetBIOS Name Service
|
||
|
- ${RESTOREDIP}:138:138/udp #NetBIOS Datagram
|
||
|
- ${RESTOREDIP}:139:139 #NetBIOS Session
|
||
|
- ${RESTOREDIP}:445:445 #SMB over TCP
|
||
|
- ${RESTOREDIP}:389:389 #LDAP
|
||
|
- ${RESTOREDIP}:389:389/udp #LDAP
|
||
|
- ${RESTOREDIP}:636:636 #LDAPS
|
||
|
- ${RESTOREDIP}:88:88 #Kerberos
|
||
|
- ${RESTOREDIP}:88:88/udp #Kerberos
|
||
|
- ${RESTOREDIP}:464:464 #Kerberos kpasswd
|
||
|
- ${RESTOREDIP}:464:464/udp #Kerberos kpasswd
|
||
|
- ${RESTOREDIP}:3268:3268 #Global Catalog
|
||
|
- ${RESTOREDIP}:3269:3269 #Global Catalog SSL
|
||
|
#RPC The same value as SMB_RPC_PORTS.
|
||
|
- ${RESTOREDIP}:49152-49200:49152-49200
|
||
|
- 873:873 #rsync
|
||
|
- 8081:80 #phpLDAPadmin & LDAP Account Manager
|
||
|
hostname: addcr
|
||
|
dns:
|
||
|
- 192.168.110.1
|
||
|
dns_search:
|
||
|
- hogeserver.hogeddns.jp
|
||
|
privileged: true
|
||
|
devices:
|
||
|
- /dev/net/tun
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
|
||
|
networks:
|
||
|
samba:
|
||
|
ipam:
|
||
|
config:
|
||
|
- subnet: 172.26.0.0/16
|
||
|
gateway: 172.26.0.1
|
||
|
|
||
|
volumes:
|
||
|
samba_etc:
|
||
|
samba_lib:
|
||
|
bind_etc:
|
||
|
bind_lib:
|
||
|
lam:
|