generated from xgeekshq/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 11
How to run
Daniel Sousa edited this page May 5, 2022
·
30 revisions
You can run this project in 3 different ways:
On topics bellow you can find more details about this ways to run this project.
Docker is a powerful tool and in some cases very useful. In this section you can find how to run this project fully in Docker.
This method it's used to run the project like you do using a terminal, so create a containers and run a development commands, like yarn dev
/npm run dev
and, the most important thing, have hot reload! 😉
If you want do that, please follow the steps bellow:
- Make sure you have Docker installed and running;
- Run this command on the project root folder:
docker-compose --file docker-compose.dev.yaml up -d
;- This command it will run the Docker Compose, but using the file to dev. environment.
- Open your Docker and verify if the containers are created and running
- You can do that using
docker ps
on your terminal too.
- You can do that using
→ Docker Desktop Output
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b20a0a82aa3f dc-frontend "…" 32 minutes ago Up 31 minutes 0.0.0.0:3000->3000/tcp frontend
eff53cef6ba5 dc-backend "…" 32 minutes ago Up 31 minutes 0.0.0.0:3200->3200/tcp, 0.0.0.0:9229->9229/tcp backend
20300f0aff1e mongo "…" 6 hours ago Up 34 minutes 0.0.0.0:27017->27017/tcp mongo
7188192e1d6f mongo "…" 6 hours ago Up 34 minutes 0.0.0.0:27018->27017/tcp mongo2
→ docker ps
Output