# leCoffre [Owner: Elise Hautefaye] ### A. Docker Launch application #### 1) Local RSA Key for docker build 1) Create a file named : `id_rsa` in /src 2) Get the RSA Private key on Keeper who is allowed to read the `leCoffre-ressources repo` 3) You can find Key on Keeper inside the folder **LeCoffre project > SSH Key** 4) Copy past in the `id_rsa` that you created step 1 :rotating_light: **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 1) **le-coffre-front** 2) **le-coffre-back** 3) **postgres** > Launch your docker container with following command : `docker compose up -d`