13 Commits

Author SHA1 Message Date
Davide Polonio
a949387058 Remove extra DNS records from Patrizio Tailscale service
Remove hardcoded DNS A records for pi.hole, pihole.lan.poldebra.me, and
ollama.lan.poldebra.me from the Tailscale container configuration. These DNS
entries are no longer needed in the docker-compose configuration.
2026-04-06 19:28:45 +02:00
Davide Polonio
ec155abe4a feat(patrizio): configure Tailscale DNS and automatic connection
Add custom DNS records for internal services (pihole and ollama) and configure
Tailscale to start automatically with accept-dns flag and custom login server.
Remove static DNS configuration in favor of extra_records approach.

Signed-off-by: Davide Polonio <davide.polonio@infinitaslearning.com>
2026-04-06 19:25:50 +02:00
Davide Polonio
d8eac547e8 feat(patrizio): add Cloudflare DNS as fallback for Tailscale
Add 1.1.1.1 as secondary DNS server to ensure DNS resolution continues
working if Tailscale DNS (100.64.0.4) becomes unavailable.
2026-04-06 19:21:45 +02:00
Davide Polonio
5d96b58fa0 fix(patrizio): simplify tailscale container configuration
Remove unnecessary shell wrapper and startup delay from tailscale
service. Configure DNS directly in docker-compose instead of relying
on --accept-dns flag. This streamlines the container startup process
and removes the 5-second artificial delay.
2026-04-06 19:19:52 +02:00
Davide Polonio
af8630bcf7 feat(docker-compose): configure custom Tailscale login server
Add --login-server flag to tailscale up command to use custom VPN server at
vpn.poldebra.me instead of default Tailscale coordination server.
2026-04-06 19:18:44 +02:00
Davide Polonio
454bac9155 feat: configure Tailscale to run as daemon with DNS acceptance
Update docker-compose.yml to run tailscaled as a background daemon and execute
tailscale up with DNS acceptance flag. This replaces the previous env_file
configuration approach.
2026-04-06 19:17:01 +02:00
Davide Polonio
52313faac2 refactor(patrizio): move tailscale environment to dedicated env file
Replace inline environment variable with env_file reference for better
configuration management. Remove redundant tailscaled command as it's
the default entrypoint.
2026-04-06 19:11:42 +02:00
Davide Polonio
03d882907d feat(patrizio): enable DNS configuration in tailscale service
Add TS_ACCEPT_DNS environment variable to allow tailscale to manage DNS settings
for the patrizio container.
2026-04-06 19:07:04 +02:00
Davide Polonio
dc740ece40 feat(docker): configure patrizio service to use tailscale network
Add network_mode configuration to patrizio service to connect it through the
tailscale service network, enabling secure private network access.
2026-04-06 18:33:21 +02:00
Davide Polonio
c3cd273219 feat(docker-compose): mount patrizio config file into container
Add read-only volume mount for patrizio.toml configuration file to make it
accessible within the container at /etc/patrizio/patrizio.toml
2026-04-06 18:17:48 +02:00
Davide Polonio
44d7a89fc8 fix: remove internal network assignment from tailscale service
The tailscale service no longer needs to be explicitly connected to the internal
network in the docker-compose configuration.
2026-04-06 18:06:04 +02:00
Davide Polonio
ba23e35f7e feat(docker): add Tailscale sidecar container and configure networking
- Add Tailscale container with hostname 'patrizio' for network connectivity
- Configure health check for Tailscale service availability
- Make patrizio service depend on healthy Tailscale container
- Mount required volumes for Tailscale state and kernel modules
- Grant necessary capabilities (net_admin, sys_module, net_raw) for VPN operation
- Add internal network configuration for service isolation
- Switch patrizio to use published image (ghcr.io/polpetta/patrizio-bot:v0.2.0)
- Standardize logging configuration across both services
2026-04-06 18:03:36 +02:00
b9ee458c11 feat: port old dockerfile definition 2026-04-06 17:49:59 +02:00