1.0 KiB
1.0 KiB
leCoffre
[Owner: Elise Hautefaye]
A. Docker Launch application
1) Local RSA Key for docker build
- Create a file named :
id_rsa
in /src - Get the RSA Private key on Keeper who is allowed to read the
leCoffre-ressources repo
- You can find Key on Keeper inside the folder LeCoffre project > SSH Key
- Copy past in the
id_rsa
that you created step 1
🚨 Be aware to have the id_rsa included in your .gitignore! This ssh shouldn't be push on github
You need to do the same task in the front and back repo.
2) Build images
a- Back end
docker build -t "le-coffre-back" -f Dockerfiles/Dockerfile.api .
b- Front end
docker build -t "le-coffre-front" -f Dockerfiles/Dockerfile.front .
3) Docker Run
docker run --env-file .env -p 3000:3000 le-coffre-back
4) Docker Compose
Docker compose allow to launch multiples images
- le-coffre-front
- le-coffre-back
- postgres
Launch your docker container with following command :
docker compose up -d