Giter Club home page Giter Club logo

Comments (6)

nemchik avatar nemchik commented on June 5, 2024 1

i have started looking at a potential alternate option; having a vpn container in DS that users would assign other containers to operate through. with that approach you would use the sab or transmission container with the names expected by swag, but you would be able to route traffic through your vpn. it's a work in progress, and i don't use a vpn, so testing will be limited.

from dockstarter.

nemchik avatar nemchik commented on June 5, 2024

An easier solution is to modify the swag config. Just set the upstream app variable to sabnzbdvpn. I think they use the same port.

I think the main difference with service name and container name (as far as how if affects users) is where you can use them. Ex: docker restart CONTAINER and docker compose restart SERVICE, although I imagine the compose cli is far less used in this way. DS does have a use case for the compose cli, but I'm not sure if we use the docker cli in a way that would conflict.

I'll look into it, but I'm thinking we probably won't make this change even with no conflicts, just to avoid confusion for users.

from dockstarter.

mtrolley avatar mtrolley commented on June 5, 2024

Hi @nemchik, I appreciate the quick feedback.

That's what I'm doing now, but that means I'm manually managing the proxy config files. The SWAG auto-proxy mod uses a label on the container to automatically apply the proxy config. I had dozens of proxy config files, and whenever LSIO updates them all you get is a warning in the SWAG log telling you your copies need to be updated, so I just went through the process of switching all of them to use the auto-proxy mod so I never need to worry about manually updating again, except for two holdouts that won't work because the container names don't match what the mod supports: sabnzbdvpn needs to have container name sabnzbd and transmissionvpn needs to have container name transmission.

I'm not sure how many people make manual changes in .env, so unless someone went in and specifically changed the <CONTAINER>_CONTAINER_NAME variable everything would continue to work like it does now I'd think. For example a lot of containers have variables in .env for modifying the ports they run on, I see this as similar to that: not likely changed by many users, but useful when you need to.

from dockstarter.

github-actions avatar github-actions commented on June 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from dockstarter.

github-actions avatar github-actions commented on June 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from dockstarter.

nemchik avatar nemchik commented on June 5, 2024

FYI the vpn container that you can route other containers through was added in #473 and you can now use the default container that matches the name swag expects. You'll need an override to setup the container vpn, which I have not tested or experimented with in a few years, but the basic idea is setting the container's network mode to the other container. This can sort of be done without an override, but I believe it does not keep the container visible for swag since it would no longer be on the same docker network as swag, but I believe an override can make it work for both uses.

from dockstarter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.