mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 12:34:31 -05:00
7749f08f0f
dockerfile.sh scripts/samba-dc.sh
37 lines
1.0 KiB
Bash
Executable File
37 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
mkdir -p /var/lib/docker/storage/samba/{config,data} &&
|
|
chmod -Rf 777 /var/lib/docker/storage/samba
|
|
|
|
docker run -t -i \
|
|
--restart always \
|
|
-e "DOMAIN=CASJAY.NET" \
|
|
-e "DOMAINPASS=80@Malak87" \
|
|
-e "DNSFORWARDER=1.1.1.1" \
|
|
-e "HOSTIP=10.0.0.250" \
|
|
-p 10.0.0.250:53:53 \
|
|
-p 10.0.0.250:53:53/udp \
|
|
-p 10.0.0.250:88:88 \
|
|
-p 10.0.0.250:88:88/udp \
|
|
-p 10.0.0.250:135:135 \
|
|
-p 10.0.0.250:137-138:137-138/udp \
|
|
-p 10.0.0.250:139:139 \
|
|
-p 10.0.0.250:389:389 \
|
|
-p 10.0.0.250:389:389/udp \
|
|
-p 10.0.0.250:445:445 \
|
|
-p 10.0.0.250:464:464 \
|
|
-p 10.0.0.250:464:464/udp \
|
|
-p 10.0.0.250:636:636 \
|
|
-p 10.0.0.250:1024-1044:1024-1044 \
|
|
-p 10.0.0.250:3268-3269:3268-3269 \
|
|
-v /etc/localtime:/etc/localtime:ro \
|
|
-v /var/lib/docker/storage/samba/data/:/var/lib/samba \
|
|
-v /var/lib/docker/storage/samba/config/samba:/etc/samba/external \
|
|
--dns-search casjay.pro \
|
|
--dns 10.0.0.250 \
|
|
--dns 1.1.1.1 \
|
|
--add-host dc.casjay.pro:10.0.0.250 \
|
|
-h localdc \
|
|
--name samba \
|
|
--privileged \
|
|
nowsci/samba-domain
|