-
Notifications
You must be signed in to change notification settings - Fork 2
Migrate Tailscale configuration to YAML and update proxy settings #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…d Dockerfile for Tailscale installation
…ockerfile for Tailscale installation
…les in Dockerfile
…ilscale.yaml for Tailscale service
…ig.tailscale-router.yaml
… new daemon script
…ete configuration files
…args in Tailscale commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Migrates Tailscale configuration from Docker Compose standalone service to DDEV's web container with built-in service management, removing the socat
dependency and simplifying the architecture.
- Replaces separate
tailscale-router
container with web container daemons using DDEV'sweb_extra_daemons
configuration - Updates command wrapper to handle dynamic port forwarding and improved
--public
flag handling for Funnel support - Removes obsolete configuration files and updates tests to reflect the new architecture
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
config.tailscale-router.yaml | New DDEV config file defining Tailscale daemons in web container |
web-build/Dockerfile.tailscale-router | Dockerfile for installing Tailscale in web container |
docker-compose.tailscale-router.yaml | Simplified to only add environment variables to web service |
commands/host/tailscale | Enhanced command wrapper with improved share/funnel handling and dynamic port support |
tests/test.bats | Updated tests to remove obsolete container-specific tests |
install.yaml | Updated project files list to reflect new architecture |
tailscale-router/config/ | Removed obsolete JSON configuration files |
README.md | Updated documentation to reflect new command options and architecture |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
# This Dockerfile installs Tailscale in a web container. | ||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
|
||
# Install Tailscale using the official install script | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
curl -fsSL https://tailscale.com/install.sh | sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be simplified to:
# This Dockerfile installs Tailscale in a web container. | |
ARG BASE_IMAGE | |
FROM $BASE_IMAGE | |
# Install Tailscale using the official install script | |
RUN apt-get update && \ | |
apt-get install -y curl && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
curl -fsSL https://tailscale.com/install.sh | sh | |
RUN curl -fsSL https://tailscale.com/install.sh | sh |
curl
is already here, ARG*FROM
is not needed these days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh. I was getting a syntax error in VSCode, so I added the FROM $BASE_IMAGE
and installed curl
for safety. Thanks for pointing it out.
TS_USERSPACE: "true" | ||
TS_PRIVACY: ${TS_PRIVACY:-private} | ||
TS_SERVE_CONFIG: /config/tailscale-${TS_PRIVACY:-private}.json | ||
- TS_AUTHKEY=${TS_AUTHKEY} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- TS_AUTHKEY=${TS_AUTHKEY} | |
- TS_AUTHKEY=${TS_AUTHKEY:-} |
The Issue
Migrated from Docker Compose to a DDEV config-based approach for Tailscale router integration, removed unnecessary files, and updated Tailscale serve config for Funnel support and dynamic port handling.
How This PR Solves The Issue
docker-compose.tailscale-router.yaml
withconfig.tailscale.yaml
using DDEV’s config features.socat
dependency and uses Tailscale’s built-in serve functionality.tailscale-private.json
andtailscale-public.json
to use Funnel and dynamicDDEV_ROUTER_HTTP_PORT
.Manual Testing Instructions