chatgpt-journal icon indicating copy to clipboard operation
chatgpt-journal copied to clipboard

(Docker) compose support

Open avra911 opened this issue 2 years ago • 4 comments

Docker compose support

Docker Compose is a tool that is useful for managing and orchestrating multi-container Docker applications. It allows you to define your application’s services, networks, and volumes in a YAML file and then run and scale the entire application with a single command.

avra911 avatar May 03 '23 15:05 avra911

you don't really need Docker compose. If you want to run Supabase locally, they have a Docker compose with all the services. Or you can use their cloud hosted free service. You only need to run the application

alexpunct avatar May 03 '23 16:05 alexpunct

you don't really need Docker compose. If you want to run Supabase locally, they have a Docker compose with all the services. Or you can use their cloud hosted free service. You only need to run the application

I prefer to have every application in docker, is easier for onboarding anyone from any operating system. For example I dont have npm installed in my system and to deal with different tag/versions locally. What if this projects uses npm 1 and my older project uses 0.0.1. Do I have to dig the internet on how to switch virtual envs in local depending on my operating system? If I move to windows during the weekends, I should start all over without a docker receipt to ship and run?

I disagree that you don't really need. I really need it.

avra911 avatar May 03 '23 16:05 avra911

You are right, I meant the docker compose for the whole setup. But for running the app itself, a Dockerfile would be nice indeed. Feel free to send a PR. And if you want to send a docker-compose that includes Supabase too, that would be even better :)

alexpunct avatar May 03 '23 17:05 alexpunct

Thanks.

I actually searched if you can run in linux npm 0.0.1 alongside with 1.0.0 and I found a way to switch but have not find a way to use both for 2 different apps to run on the same time. That is where docker is useful, because I dont even need to know which version the app uses for most of the tasks.

avra911 avatar May 03 '23 17:05 avra911