docker container and installationscript

This commit is contained in:
Kai Ritthaler 2025-05-15 14:49:19 +02:00 committed by Rudi Regentonne
parent b0f631cf45
commit ec67454987
6 changed files with 77 additions and 2 deletions

4
code/db/.env.example Normal file
View 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

View 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: