e79ee08c63
- Fix CoreDNS not loading .cell zones (wrong Corefile path, now uses -conf flag) - Fix WireGuard server address conflict (172.20.0.1/16 overlapped with Docker network; changed to 10.0.0.1/24 to eliminate duplicate routes) - Add SERVERMODE=true and sysctls to WireGuard docker-compose for server mode - Fix DNS zone file parser to handle 4-field records (name IN type value) - Add get_dns_records() to NetworkManager; mount data/dns into API container - Fix peer config endpoint: look up IP/key from registry, use real endpoint - Add bulk peer statuses endpoint keyed by public_key - Normalize snake_case API fields to camelCase in WireGuard UI - Add port check endpoint (checks via live handshake, not unreliable TCP probe) - Add Caddy virtual hosts for ui/calendar/files/mail .cell domains (HTTP only) - Fix cell config domain default from cell.local to cell - Fix Routing Network Config tab (was calling hardcoded localhost:3000) - Fix DNS records display (record.value not record.ip) - Move service access guide to top of Dashboard with login hints - Add /api/routing/setup endpoint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
190 lines
4.3 KiB
YAML
190 lines
4.3 KiB
YAML
version: '3.3'
|
|
|
|
services:
|
|
# Reverse Proxy - Caddy for TLS termination and routing
|
|
caddy:
|
|
image: caddy:2-alpine
|
|
container_name: cell-caddy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./config/caddy/Caddyfile:/etc/caddy/Caddyfile
|
|
- ./data/caddy:/data
|
|
- ./config/caddy/certs:/config/caddy/certs
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
|
|
# DNS Server - CoreDNS for .cell TLD resolution
|
|
dns:
|
|
image: coredns/coredns:latest
|
|
container_name: cell-dns
|
|
command: ["-conf", "/etc/coredns/Corefile"]
|
|
ports:
|
|
- "53:53/udp"
|
|
- "53:53/tcp"
|
|
volumes:
|
|
- ./config/dns/Corefile:/etc/coredns/Corefile
|
|
- ./data/dns:/data
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
|
|
# DHCP Server - dnsmasq for IP leasing
|
|
dhcp:
|
|
image: alpine:latest
|
|
container_name: cell-dhcp
|
|
ports:
|
|
- "67:67/udp"
|
|
volumes:
|
|
- ./config/dhcp/dnsmasq.conf:/etc/dnsmasq.conf
|
|
- ./data/dhcp:/var/lib/misc
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
command: ["/bin/sh", "-c", "apk add --no-cache dnsmasq && dnsmasq -d -C /etc/dnsmasq.conf"]
|
|
cap_add:
|
|
- NET_ADMIN
|
|
|
|
# NTP Server - chrony for time synchronization
|
|
ntp:
|
|
image: alpine:latest
|
|
container_name: cell-ntp
|
|
ports:
|
|
- "123:123/udp"
|
|
volumes:
|
|
- ./config/ntp/chrony.conf:/etc/chrony/chrony.conf
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
command: ["/bin/sh", "-c", "apk add --no-cache chrony && exec chronyd -d -f /etc/chrony/chrony.conf -n"]
|
|
|
|
# Email Server - Postfix + Dovecot
|
|
mail:
|
|
image: mailserver/docker-mailserver:latest
|
|
container_name: cell-mail
|
|
hostname: mail
|
|
domainname: yourdomain.com # <-- Set your domain!
|
|
env_file: ./config/mail/mailserver.env
|
|
ports:
|
|
- "25:25"
|
|
- "587:587"
|
|
- "993:993"
|
|
volumes:
|
|
- ./data/maildata:/var/mail
|
|
- ./data/mailstate:/var/mail-state
|
|
- ./data/maillogs:/var/log/mail
|
|
- ./config/mail/config:/tmp/docker-mailserver/
|
|
- ./config/mail/ssl:/etc/letsencrypt
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
cap_add:
|
|
- NET_ADMIN
|
|
|
|
# Calendar & Contacts - Radicale
|
|
radicale:
|
|
image: tomsquest/docker-radicale:latest
|
|
container_name: cell-radicale
|
|
ports:
|
|
- "5232:5232"
|
|
volumes:
|
|
- ./config/radicale:/etc/radicale
|
|
- ./data/radicale:/data
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
|
|
# File Storage - WebDAV
|
|
webdav:
|
|
image: bytemark/webdav:latest
|
|
container_name: cell-webdav
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./data/files:/var/lib/dav
|
|
- ./config/webdav/users.passwd:/etc/users.passwd
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
|
|
# WireGuard VPN
|
|
wireguard:
|
|
image: linuxserver/wireguard:latest
|
|
container_name: cell-wireguard
|
|
environment:
|
|
- SERVERMODE=true
|
|
- PUID=911
|
|
- PGID=911
|
|
ports:
|
|
- "51820:51820/udp"
|
|
volumes:
|
|
- ./config/wireguard:/config
|
|
- /lib/modules:/lib/modules
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
- net.ipv4.ip_forward=1
|
|
|
|
# CLI API Server
|
|
api:
|
|
build: ./api
|
|
container_name: cell-api
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data/api:/app/data
|
|
- ./data/dns:/app/data/dns
|
|
- ./config/api:/app/config
|
|
- ./config/wireguard:/app/config/wireguard
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
depends_on:
|
|
- wireguard
|
|
- dns
|
|
|
|
# Web UI - React + Vite
|
|
webui:
|
|
build: ./webui
|
|
container_name: cell-webui
|
|
ports:
|
|
- "8081:80"
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
|
|
rainloop:
|
|
image: hardware/rainloop
|
|
container_name: cell-rainloop
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
ports:
|
|
- "8888:8888"
|
|
|
|
filegator:
|
|
image: filegator/filegator
|
|
container_name: cell-filegator
|
|
restart: unless-stopped
|
|
networks:
|
|
- cell-network
|
|
ports:
|
|
- "8082:8080"
|
|
environment:
|
|
- FG_PUBLIC_PATH=/files-ui
|
|
|
|
networks:
|
|
cell-network:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.20.0.0/16
|