Skip to main content

Compose

Static IPs

Subtab of image

networks:
default:
ipv4_address: YOUR_IP

Add host networking as secondary

Subtab of image

extra_hosts:
- "host.docker.internal:host-gateway"

Restart

Subtab of image

restart: unless-stopped

Docker Network

Place at bottom of file

networks:
default:
external: true
name: scoobydoo

Mount files in container

Subtab of image

volumes:
- ${PWD}/state:/var/lib/tailscale

Expose network ports on host IP

Subtab of image

ports:
- 443:443
- 80:80