Docker Community Forums

Share and learn in the Docker community.

One container for each customers


Hi everyone,
here is my situation.

I built an asp web application and I store the data in a Postgres database.
I create a compose file where I have the database volume and every necessary configuration I need to run the application.

My goal is to have a Registration page where the User will choose it subdomain and to have a kind of separation of concern between each user organization, I would like that they got their own database.

Here is the registration workflow.
My main domain is
The user chooses it subdomain:
I will have a batch file that executes a batch file. (docker-compose up)

Now the question.
How do I create a separate environment per user organization?
I think they should have their own instance of the container (web app and database)

I’m really new with docker and I’m pretty sure there is a way to achieve that.

thanks a lot