Compare commits
24
Commits
bookworm-dev
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ec238b41c | ||
|
|
5ba8d0d3dc | ||
|
|
d8a13d91e9 | ||
|
|
8069630437 | ||
|
|
f30db589ce | ||
|
|
84834321e9 | ||
|
|
92060dc338 | ||
|
|
f6a0ef9eea | ||
|
|
ec1d503d7d | ||
|
|
dc35a5d205 | ||
|
|
f069ad32e8 | ||
|
|
60cd2e685d | ||
|
|
884ec41f56 | ||
|
|
7dfcfdeb75 | ||
|
|
698a95e87f | ||
|
|
1dccf07d8c | ||
|
|
436ab972e6 | ||
|
|
48523736a3 | ||
|
|
6581c9b101 | ||
|
|
85686c8533 | ||
|
|
59c51c9364 | ||
|
|
838a573147 | ||
|
|
9be005ece4 | ||
|
|
3bcd56b453 |
No files matched your search
@@ -5,6 +5,8 @@ services:
|
|||||||
hostname: ${SAMBA_HOSTNAME}
|
hostname: ${SAMBA_HOSTNAME}
|
||||||
domainname: ${SAMBA_DOMAIN}
|
domainname: ${SAMBA_DOMAIN}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
privileged: true
|
||||||
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
__ENV_BLOCK__
|
__ENV_BLOCK__
|
||||||
volumes:
|
volumes:
|
||||||
@@ -12,12 +14,4 @@ __ENV_BLOCK__
|
|||||||
- ./private:/var/lib/samba
|
- ./private:/var/lib/samba
|
||||||
- ./state/log:/var/log/samba
|
- ./state/log:/var/log/samba
|
||||||
- ./state/run:/run/samba
|
- ./state/run:/run/samba
|
||||||
networks:
|
stop_grace_period: 60s
|
||||||
samba-ad-lan:
|
|
||||||
ipv4_address: ${SAMBA_IP}
|
|
||||||
stop_grace_period: 60s
|
|
||||||
|
|
||||||
networks:
|
|
||||||
samba-ad-lan:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
+14
-3
@@ -1,8 +1,8 @@
|
|||||||
# __REPO_NAME__
|
# __REPO_NAME__
|
||||||
__DESCRIPTION__
|
__DESCRIPTION__
|
||||||
|
|
||||||
<a href="https://git.pi-farm.de/pi-farm/samba-ad-dc/actions" target="_blank" rel="noopener noreferrer">
|
<a href="https://git.pi-farm.de/pi-farm/__REPO_NAME__/actions" target="_blank" rel="noopener noreferrer">
|
||||||
<img src="https://git.pi-farm.de/pi-farm/samba-ad-dc/actions/workflows/build-and-push.yaml/badge.svg?branch=dev" alt="Build Status">
|
<img src="https://git.pi-farm.de/pi-farm/__REPO_NAME__/actions/workflows/build-and-push.yaml/badge.svg" alt="Build Status">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://git.pi-farm.de/pi-farm/__REPO_NAME__" target="_blank" rel="noopener noreferrer">
|
<a href="https://git.pi-farm.de/pi-farm/__REPO_NAME__" target="_blank" rel="noopener noreferrer">
|
||||||
<img src="https://img.shields.io/badge/gitea-pi--farm-609930?logo=gitea&logoColor=white" alt="Gitea Repository">
|
<img src="https://img.shields.io/badge/gitea-pi--farm-609930?logo=gitea&logoColor=white" alt="Gitea Repository">
|
||||||
@@ -22,10 +22,21 @@ __DOCKERHUB_LINK__
|
|||||||
|
|
||||||
## 🐙 Method 1: Docker Compose (Recommended)
|
## 🐙 Method 1: Docker Compose (Recommended)
|
||||||
|
|
||||||
### 🚀 1. Create `docker-compose.yml`
|
### 🚀 1. Create `docker-compose.yml`
|
||||||
```yaml
|
```yaml
|
||||||
__COMPOSE_BLOCK__
|
__COMPOSE_BLOCK__
|
||||||
```
|
```
|
||||||
|
and `.env`
|
||||||
|
```yaml
|
||||||
|
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!
|
||||||
|
```
|
||||||
### 🚀 2. Pull & start the container
|
### 🚀 2. Pull & start the container
|
||||||
### Pull or update the image
|
### Pull or update the image
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'dev'
|
- 'main'
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'README.md'
|
- 'README.md'
|
||||||
- 'Dockerfile*'
|
- 'Dockerfile*'
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ RUN mkdir -p \
|
|||||||
|
|
||||||
COPY chrony.conf /etc/chrony/chrony.conf
|
COPY chrony.conf /etc/chrony/chrony.conf
|
||||||
COPY scripts/entrypoint.sh /entrypoint.sh
|
COPY scripts/entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod 755 /entrypoint.sh
|
RUN chmod 750 /entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 53/tcp
|
EXPOSE 53/tcp
|
||||||
EXPOSE 53/udp
|
EXPOSE 53/udp
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ RUN mkdir -p \
|
|||||||
|
|
||||||
COPY chrony.conf /etc/chrony/chrony.conf
|
COPY chrony.conf /etc/chrony/chrony.conf
|
||||||
COPY scripts/entrypoint.sh /entrypoint.sh
|
COPY scripts/entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod 755 /entrypoint.sh
|
RUN chmod 750 /entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 53/tcp
|
EXPOSE 53/tcp
|
||||||
EXPOSE 53/udp
|
EXPOSE 53/udp
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
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.
|
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.
|
||||||
|
|
||||||
<a href="https://git.pi-farm.de/pi-farm/samba-ad-dc/actions" target="_blank" rel="noopener noreferrer">
|
<a href="https://git.pi-farm.de/pi-farm/samba-ad-dc/actions" target="_blank" rel="noopener noreferrer">
|
||||||
<img src="https://git.pi-farm.de/pi-farm/samba-ad-dc/actions/workflows/build-and-push.yaml/badge.svg?branch=dev" alt="Build Status">
|
<img src="https://git.pi-farm.de/pi-farm/samba-ad-dc/actions/workflows/build-and-push.yaml/badge.svg" alt="Build Status">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://git.pi-farm.de/pi-farm/samba-ad-dc" target="_blank" rel="noopener noreferrer">
|
<a href="https://git.pi-farm.de/pi-farm/samba-ad-dc" target="_blank" rel="noopener noreferrer">
|
||||||
<img src="https://img.shields.io/badge/gitea-pi--farm-609930?logo=gitea&logoColor=white" alt="Gitea Repository">
|
<img src="https://img.shields.io/badge/gitea-pi--farm-609930?logo=gitea&logoColor=white" alt="Gitea Repository">
|
||||||
@@ -15,14 +15,14 @@ This repository is built and pushed automatically.
|
|||||||
### 🏗️ Platform Support
|
### 🏗️ Platform Support
|
||||||
| Architecture | Status | Base Image | Build Date |
|
| Architecture | Status | Base Image | Build Date |
|
||||||
| :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- |
|
||||||
| x86_64 (amd64) | ✅ Active | debian:bookworm-slim | 29.10.2026 00:58 |
|
| x86_64 (amd64) | ✅ Active | debian:trixie-slim | 29.10.2026 10:25 |
|
||||||
| aarch64 (arm64) | ✅ Active | debian:bookworm-slim | 29.10.2026 00:58 |
|
| aarch64 (arm64) | ✅ Active | debian:trixie-slim | 29.10.2026 10:25 |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🐙 Method 1: Docker Compose (Recommended)
|
## 🐙 Method 1: Docker Compose (Recommended)
|
||||||
|
|
||||||
### 🚀 1. Create `docker-compose.yml`
|
### 🚀 1. Create `docker-compose.yml`
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
samba-ad-dc:
|
samba-ad-dc:
|
||||||
@@ -31,6 +31,8 @@ services:
|
|||||||
hostname: ${SAMBA_HOSTNAME}
|
hostname: ${SAMBA_HOSTNAME}
|
||||||
domainname: ${SAMBA_DOMAIN}
|
domainname: ${SAMBA_DOMAIN}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
privileged: true
|
||||||
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
SAMBA_REALM: ${SAMBA_REALM}
|
SAMBA_REALM: ${SAMBA_REALM}
|
||||||
SAMBA_DOMAIN: ${SAMBA_DOMAIN}
|
SAMBA_DOMAIN: ${SAMBA_DOMAIN}
|
||||||
@@ -45,15 +47,18 @@ services:
|
|||||||
- ./private:/var/lib/samba
|
- ./private:/var/lib/samba
|
||||||
- ./state/log:/var/log/samba
|
- ./state/log:/var/log/samba
|
||||||
- ./state/run:/run/samba
|
- ./state/run:/run/samba
|
||||||
networks:
|
stop_grace_period: 60s
|
||||||
samba-ad-lan:
|
```
|
||||||
ipv4_address: ${SAMBA_IP}
|
and `.env`
|
||||||
stop_grace_period: 60s
|
```yaml
|
||||||
|
SAMBA_REALM=YOUR-DOMAIN.LOC
|
||||||
networks:
|
SAMBA_DOMAIN=YOURDOMAIN
|
||||||
samba-ad-lan:
|
SAMBA_HOSTNAME=DC01
|
||||||
external: true
|
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!
|
||||||
```
|
```
|
||||||
### 🚀 2. Pull & start the container
|
### 🚀 2. Pull & start the container
|
||||||
### Pull or update the image
|
### Pull or update the image
|
||||||
@@ -84,13 +89,19 @@ docker run -d \
|
|||||||
-e SAMBA_NETWORK=192.168.178.0/24 \
|
-e SAMBA_NETWORK=192.168.178.0/24 \
|
||||||
-e DNS_FORWARDER=192.168.178.1 \
|
-e DNS_FORWARDER=192.168.178.1 \
|
||||||
-e SAMBA_ADMIN_PASSWORD=CHANGE-THIS-TO-A-STRONG-SECRET \
|
-e SAMBA_ADMIN_PASSWORD=CHANGE-THIS-TO-A-STRONG-SECRET \
|
||||||
git.pi-farm.de/pi-farm/samba-ad-dc:bookworm-dev
|
git.pi-farm.de/pi-farm/samba-ad-dc:trixie
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
*Last updated on: 29.10.2026 00:58*
|
*Last updated on: 29.10.2026 10:25*
|
||||||
|
|
||||||
### 📜 Version History
|
### 📜 Version History
|
||||||
| Version | Date | Status |
|
| Version | Date | Status |
|
||||||
| :--- | :--- | :--- |
|
| :--- | :--- | :--- |
|
||||||
| **bookworm-dev** | 29.10.2026 00:58 | ✅ |
|
| **trixie** | 29.10.2026 10:25 | 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 | ✅ |
|
||||||
+7
-1
@@ -1 +1,7 @@
|
|||||||
| **bookworm-dev** | 29.10.2026 00:58 | ✅ |
|
| **trixie** | 29.10.2026 10:25 | 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 | ✅ |
|
||||||
+3
-3
@@ -1,15 +1,15 @@
|
|||||||
## BASE CONFIG
|
## BASE CONFIG
|
||||||
DEBIAN_CODENAME=bookworm
|
DEBIAN_CODENAME=trixie
|
||||||
BUILD_COUNTRY=de
|
BUILD_COUNTRY=de
|
||||||
|
|
||||||
## BUILD STAGE
|
## BUILD STAGE
|
||||||
BUILD_BASE_IMAGE="debian:${DEBIAN_CODENAME}-slim"
|
BUILD_BASE_IMAGE="debian:${DEBIAN_CODENAME}-slim"
|
||||||
BUILD_TAG="${DEBIAN_CODENAME}"
|
BUILD_TAG="${DEBIAN_CODENAME}"
|
||||||
BUILD_TAG_LATEST=n
|
BUILD_TAG_LATEST=y
|
||||||
BUILD_MAINTAINER=pi-farm
|
BUILD_MAINTAINER=pi-farm
|
||||||
BUILD_APP_NAME=samba-ad-dc
|
BUILD_APP_NAME=samba-ad-dc
|
||||||
BUILD_APP_VERSION=1.0.0
|
BUILD_APP_VERSION=1.0.0
|
||||||
PUSH=gitea
|
PUSH=dockerhub
|
||||||
|
|
||||||
## ENV STAGE – SAMBA ACTIVE DIRECTORY DOMAIN CONTROLLER
|
## ENV STAGE – SAMBA ACTIVE DIRECTORY DOMAIN CONTROLLER
|
||||||
ENV_SAMBA_REALM=YOUR-DOMAIN.LOC
|
ENV_SAMBA_REALM=YOUR-DOMAIN.LOC
|
||||||
|
|||||||
+3
-9
@@ -5,6 +5,8 @@ services:
|
|||||||
hostname: ${SAMBA_HOSTNAME}
|
hostname: ${SAMBA_HOSTNAME}
|
||||||
domainname: ${SAMBA_DOMAIN}
|
domainname: ${SAMBA_DOMAIN}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
privileged: true
|
||||||
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
SAMBA_REALM: ${SAMBA_REALM}
|
SAMBA_REALM: ${SAMBA_REALM}
|
||||||
SAMBA_DOMAIN: ${SAMBA_DOMAIN}
|
SAMBA_DOMAIN: ${SAMBA_DOMAIN}
|
||||||
@@ -19,12 +21,4 @@ services:
|
|||||||
- ./private:/var/lib/samba
|
- ./private:/var/lib/samba
|
||||||
- ./state/log:/var/log/samba
|
- ./state/log:/var/log/samba
|
||||||
- ./state/run:/run/samba
|
- ./state/run:/run/samba
|
||||||
networks:
|
stop_grace_period: 60s
|
||||||
samba-ad-lan:
|
|
||||||
ipv4_address: ${SAMBA_IP}
|
|
||||||
stop_grace_period: 60s
|
|
||||||
|
|
||||||
networks:
|
|
||||||
samba-ad-lan:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
@@ -175,6 +175,12 @@ echo " Preparing NTP signing socket"
|
|||||||
echo "=============================================="
|
echo "=============================================="
|
||||||
|
|
||||||
mkdir -p /var/lib/samba/ntp_signd
|
mkdir -p /var/lib/samba/ntp_signd
|
||||||
|
if [ -d "/var/lib/samba/ntp_signd" ]; then
|
||||||
|
chmod 0750 /var/lib/samba/ntp_signd
|
||||||
|
else
|
||||||
|
mkdir -p /var/lib/samba/ntp_signd
|
||||||
|
chmod 0750 /var/lib/samba/ntp_signd
|
||||||
|
fi
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Start Samba first
|
# Start Samba first
|
||||||
|
|||||||
Reference in new issue
Block a user