This is a docker image for a Linuxmuster.NET backup domain controller.
- Can be used as full domain controller or as read-only domain controller
- Preload user and computer objects
- Cache password of user's on login
- Replicate sysvol to hold GPOs and scripts
- Can be used as DNS-Server with the full zone of the domain
on the main linuxmuster server
apt-get install linuxmuster-bdcon the main linuxmuster server
nano /var/lib/linuxmuster-bdc/rsyncd-sysvol-replication.secreton the backup domain controller
mkdir -p /srv/docker/linuxmuster-bdc
cat << EOF > /srv/docker/linuxmuster-bdc/docker-compose.yml
services:
linuxmuster-bdc:
image: ghcr.io/netzint/linuxmuster-bdc:latest
container_name: linuxmuster-bdc
restart: always
hostname: ${HOSTNAME}
privileged: true
env_file:
- .env
ports:
- "53:53/tcp"
- "53:53/udp"
- "88:88/tcp"
- "88:88/udp"
- "135:135/tcp"
- "389:389/tcp"
- "389:389/udp"
- "445:445/tcp"
- "636:636/tcp"
EOFon the backup domain controller
cat << EOF > /srv/docker/linuxmuster-bdc/.env
HOSTNAME="cache01.linuxmuster.lan" # hostname of bdc
DOMAIN="LINUXMUSTER.LAN"
NETBIOS="LINUXMUSTER"
DCIP="10.0.0.1" # ip of the main linuxmuster server
ADMINUSER="global-admin"
ADMINPASSWORD="Muster!"
INTERVAL="600" # sync interval for user, computer and sysvol (in seconds)
DNSFORWARDER="10.0.0.254"
MODE="DC" # could be DC or RODC (read-only)
RSYNCSECRET="Muster!"
EOFon the backup domain controller
cd /srv/docker/linuxmuster-bdc
docker compose up -d && docker compose logs -f