Skip to content
Snippets Groups Projects
Commit 34ef8590 authored by Laurine's avatar Laurine
Browse files

docker bdd

parent cb6c77a6
Branches
No related tags found
No related merge requests found
/.idea/ /.idea/
# System files
.DS_Store
Thumbs.db
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=
...@@ -31,3 +31,5 @@ build/ ...@@ -31,3 +31,5 @@ build/
### VS Code ### ### VS Code ###
.vscode/ .vscode/
.env
# Your backend API
## Set up
1. Copie-colle le .env.sample en .env
2. Rajoute le pluggin : https://plugins.jetbrains.com/plugin/7861-envfile
3. <img src="img-readme/img.png">
3. <img src="img-readme/img_1.png">
3. <img src="img-readme/img_2.png">
version: '3.1'
services:
database:
container_name: api_database
image: postgres
restart: always
env_file:
- .env
environment:
POSTGRES_USER : ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
ports:
- "5432:5432"
back-skeleton/img-readme/img.png

54.6 KiB

back-skeleton/img-readme/img_1.png

86.8 KiB

back-skeleton/img-readme/img_2.png

64.4 KiB

spring.datasource.url=jdbc:postgresql://localhost:5432/${DATABASE_NAME}
spring.datasource.username=${DATABASE_USER}
spring.datasource.password=${DATABASE_PASSWORD}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment