This repository supports:
tailscale-dev / docker-guide-code-examples Goto Github PK
View Code? Open in Web Editor NEWhttps://tailscale.com/blog/docker-tailscale-guide
https://tailscale.com/blog/docker-tailscale-guide
This repository supports:
I would like to set up the Immich stack as a Tailscale node, similar to the https://github.com/tailscale-dev/docker-guide-code-examples/tree/main/05-ts-immich-gpu example.
However, if I have Tailscale running on the host machine (which is running the Docker images), the Tailscale connection of the docker container never initializes. AFAICT, the DNS setup is misconfigured somehow and the container can not resolve any names, including the Tailscale DERP servers.
The host Tailscale server is configured to accept DNS from the admin panel, but turning that off did not resolve the issue. Only turning off the host Tailscale server allowed the Immich container to join the Tailscale network.
This is very cool and useful! - thanks for putting this together.
It would be very helpful to see an example of this applied to a more complex docker compose set-up. I've got a docker compose stack with multiple components: a database, a back-end server component and a web front-end. Previously I used networks:
to add them to the same network and ports:
to specify which ports they should expose to each-other but networks
and ports
are mutually exclusive with network_mode
. Is there a suggested approach to using the tailscale container for a scenario like this?
I created a docker compose file with tailscale and another docker (litellm).
It seems tailscale takes a bit longer to start and it is causing a name resolution issue when litellm starts (so it exits). Maybe there is another issue on top.
However, would it be possible to get in the example (docker-compose.yml) a section with:
An healthcheck we can add to the ts-docker (maybe a ping to the hello service) to confirm it started (above all the 1st time when it needs to validate the token?). I am not sure about the best way to do it?
I've recently tried to use your docker image with TS_SERVE_CONFIG, following the official docs and these examples, but after a bunch of testing with it, I concluded that it seams to me as though the environment variable TS_SERVE_CONFIG is no longer considered, and may have been removed by an update.
Most of my testing was done on 1st & 2nd June 2024, using the stable tag.
If I am correct, it would be great if both this repo as well as your official docs could be adjusted to reflect this, to spare others the trouble of attempting to get results out of using this environment variable.
I can not find any information on the "target" IP?
Is the ip in the example file an ip that work for everyone, or do you have to match it to your specific setup?
"nodeAttrs": [
{
// Funnel policy, which lets tailnet members control Funnel
// for their own devices.
// Learn more at https://tailscale.com/kb/1223/tailscale-funnel/
"target": ["autogroup:member"],
"attr": ["funnel"],
},
{"target": ["100.71.14.42"], "attr": ["funnel"]},
],
I sued the same compose file as shows in the example with tailscale as the sidecar proxy and mealie as the service that is being proxied. I used an Auth key and have the same container tag setup in my ACL. The serve function works but the funnel will not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.