massmux / lightstack

Automagic Selfcustodial Cloud Lightning Stack
9 stars 2 forks source link

Multiple stacks on the same host #5

Open massmux opened 4 days ago

massmux commented 4 days ago

The needed improvement is to improve the existing init script to able to add a new stack (belonging to a different domain name) to the same host. Below an idea on how to accomplish that result.

For example running the init script with the tag add. In this case the script should:


Multiple File Call (Docker Recommended) in docker compose orchestration ● This method uses the -f option with the docker-compose command to call multiple YAML configuration files. ● Advantages: This is a straightforward approach endorsed by Docker. ●Example: ○ Create a common.yml file with shared services like a database. ○ Create individual files for other services, like app.yml. ○ Run docker-compose -f common.yml -f app.yml up to start all services

tulliolo commented 4 days ago

I'm working on it, basically the idea is to create a main docker-compose file with nginx and to prepare a dir for each stack, linking the docker-compose files of the stack into the main one with an include directive. Automation will add/remove stacks on demand.