mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-06 15:18:48 +00:00
docker container and installationscript
This commit is contained in:
parent
b0f631cf45
commit
ec67454987
6 changed files with 77 additions and 2 deletions
4
code/db/.env.example
Normal file
4
code/db/.env.example
Normal file
|
@ -0,0 +1,4 @@
|
|||
# This is an example of a .env file for the docker-compose setup.
|
||||
# You can copy this file to .env and fill in the values.)
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=securePassword1234
|
15
code/db/docker-compose.yaml
Normal file
15
code/db/docker-compose.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
container_name: postgres-DB
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_DB: prisma
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
pgdata:
|
Loading…
Add table
Add a link
Reference in a new issue