SHIV5T3R / CO-DE

An Open Source Collaborative Code Editor
34 stars 26 forks source link

Feat: Add Docker compose to run local enviroment #28

Closed blackmouse572 closed 8 months ago

blackmouse572 commented 1 year ago

Docker compose will run

You can also config the env at compose.yml otherwise, the default values:

zatoa commented 11 months ago

I would setup .env.examples and pull these into docker-compose instead of hard coding.

zatoa commented 11 months ago

Usually I've only used docker-compose locally in dev to setup the supporting services such as redis,postgresql,nginx etc. It might be that someone just wants these supporting services without building the local Dockerfiles. Two compose files might be useful depending how prod is deployed..

Popping a docker-compose up/down script in the package.json might be useful

blackmouse572 commented 11 months ago

Usually I've only used docker-compose locally in dev to setup the supporting services such as redis,postgresql,nginx etc. It might be that someone just wants these supporting services without building the local Dockerfiles. Two compose files might be useful depending how prod is deployed..

Popping a docker-compose up/down script in the package.json might be useful

That good idea. Could you help me add this to script and embed env ?

believemanasseh commented 11 months ago

Usually I've only used docker-compose locally in dev to setup the supporting services such as redis,postgresql,nginx etc. It might be that someone just wants these supporting services without building the local Dockerfiles. Two compose files might be useful depending how prod is deployed..

Popping a docker-compose up/down script in the package.json might be useful

What do you mean by "popping a docker-compose up/down script in the package.json"?

Also in this context, I'd assume we could use something like docker swarm to unify these multiple docker compose environments. cc: @joshua-mo-143

zatoa commented 8 months ago

@blackmouse572 @believemanasseh This is now a duplicate/stale/old PR?

believemanasseh commented 8 months ago

@blackmouse572 @believemanasseh This is now a duplicate/stale/old PR?

Yeah