Closed jaydrogers closed 2 months ago
Hey Jay as I played this feature a bit already I was wondering what it would look like when running multiple applications on the same server. As you won't deploy generic services like traefik and redis with each application/project, would you have like a generic stack/project with stuff like traefik, redis etc, and then specific app stacks with php service(s) + appropriate traefik labels? Or would this be meant to deploy 1 app per server?
Been doing some testing, and got it working with multiple swarm stacks. 1 stack for traefik, 1 for redis, and 1 with a laravel project. What's cool about the setup is that it's really easy to run multiple web projects on the same server. Perhaps I'm misunderstanding the current situation and this is already possible, but I couldn't see how.
A couple things I ran into:
spin deploy production
instead if spin deploy production_<unique_tag>
Its also important to define the network as follows:
networks:
web-public:
external: true
Else the stacks won't be able to communicate with each other.
All things above are probably out of scope currently for this issue/feature, but it would be really cool to have proper support for multiple docker stacks.
You can ignore my remarks, they don't really apply to the issue/feature in question. I'll create a separate feature request.
This has been completed and released with 2.0 🥳
Thanks for your help, @nckrtl!
Nice!
Discussed in https://github.com/serversideup/spin/discussions/61