lecoffre-back/README.md
2023-04-12 11:51:53 +02:00

34 lines
980 B
Markdown

# leCoffre
[Owner: Elise Hautefaye]
### A. Docker Launch application
#### 1) Local RSA Key for docker build
1) Create a file named : `id_rsa` in /src/.ssh
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 Dockerfile .`
###### b- Front end
`docker build -t "le-coffre-front" -f Dockerfile .`
#### 3) 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` -> Logs in terminal
`docker compose up -d`