tailscale ready docker-compose

This commit is contained in:
peskyadmin 2025-04-08 09:41:21 -05:00
parent d042c75641
commit c9c7762587

View File

@ -0,0 +1,31 @@
services:
homepage-ts:
image: tailscale/tailscale:latest
hostname: homepage
container_name: homepage-ts
environment:
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json
volumes:
- ./tailscale/tailscale-data:/var/lib/tailscale
- ./tailscale/config:/config
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
# ports:
# - 3000:3000
volumes:
- ./homepage/config:/app/config # Make sure your local config directory exists
# - /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
environment:
# HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
HOMEPAGE_ALLOWED_HOSTS: "*" # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
network_mode: service:homepage-ts
depends_on:
- homepage-ts