Samba Active Directory Domain Controller with integrated DNS, Kerberos authentication and Chrony tim
606
Samba Active Directory Domain Controller with integrated DNS, Kerberos authentication and Chrony time synchronization. You have to edit the .env file only to your personal needs and start the container.
This repository is built and pushed automatically.
| Architecture | Status | Base Image | Build Date |
|---|---|---|---|
| x86_64 (amd64) | ✅ Active | debian:trixie-slim | 08.11.2026 06:24 |
| aarch64 (arm64) | ✅ Active | debian:trixie-slim | 08.11.2026 06:24 |
docker-compose.ymlservices:
samba-ad-dc:
image: pifarm/samba-ad-dc:trixie
container_name: samba-ad-dc
hostname: ${SAMBA_HOSTNAME}
domainname: ${SAMBA_DOMAIN}
restart: unless-stopped
privileged: true
network_mode: host
environment:
SAMBA_REALM: ${SAMBA_REALM}
SAMBA_DOMAIN: ${SAMBA_DOMAIN}
SAMBA_HOSTNAME: ${SAMBA_HOSTNAME}
SAMBA_FQDN: ${SAMBA_FQDN}
SAMBA_IP: ${SAMBA_IP}
SAMBA_NETWORK: ${SAMBA_NETWORK}
DNS_FORWARDER: ${DNS_FORWARDER}
SAMBA_ADMIN_PASSWORD: ${SAMBA_ADMIN_PASSWORD}
volumes:
- ./config:/etc/samba
- ./private:/var/lib/samba
- ./state/log:/var/log/samba
- ./state/run:/run/samba
stop_grace_period: 60s
and .env
SAMBA_REALM=YOUR-DOMAIN.LOC
SAMBA_DOMAIN=YOURDOMAIN
SAMBA_HOSTNAME=DC01
SAMBA_FQDN=dc01.YOUR-DOMAIN.loc
SAMBA_IP=192.168.178.10
SAMBA_NETWORK=192.168.178.0/24
DNS_FORWARDER=192.168.178.1
SAMBA_ADMIN_PASSWORD=SuperSecretPassword!1234!
docker compose pull
docker compose up -d
docker pull pifarm/samba-ad-dc:trixie
docker run -d \
--name samba-ad-dc \
--restart unless-stopped \
-e SAMBA_REALM=YOUR-DOMAIN.LOC \
-e SAMBA_DOMAIN=YOURDOMAIN \
-e SAMBA_HOSTNAME=DC01 \
-e SAMBA_FQDN=dc01.your-domain.loc \
-e SAMBA_IP=192.168.178.10 \
-e SAMBA_NETWORK=192.168.178.0/24 \
-e DNS_FORWARDER=192.168.178.1 \
-e SAMBA_ADMIN_PASSWORD=CHANGE-THIS-TO-A-STRONG-SECRET \
pifarm/samba-ad-dc:trixie
Last updated on: 08.11.2026 06:24
| Version | Date | Status |
|---|---|---|
| trixie | 08.11.2026 06:24 | add .env description in README.md ✅ |
| trixie | 29.10.2026 10:23 | add .env ✅ |
| trixie | 29.10.2026 10:01 | chmod 750 for ntp ✅ |
| trixie | 29.10.2026 09:54 | ✅ |
| trixie | 29.10.2026 09:52 | add networkmode host ✅ |
| trixie | 29.10.2026 00:37 | ✅ |
| trixie | 29.10.2026 00:26 | ✅ |
Content type
Image
Digest
sha256:9126892ee…
Size
96.3 MB
Last updated
9 days ago
docker pull pifarm/samba-ad-dc