Databse Neustarten nach Server Neustart

This commit is contained in:
Moritz Utcke
2025-05-18 11:57:26 -03:00
parent 058a84025c
commit 7e047125a7
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ run-database: stop-database
docker volume create $(DB_VOLUME)
docker build -t $(DB_CONTAINER_NAME) .
docker run -d --name $(DB_CONTAINER_NAME) \
--restart=always \
-e POSTGRES_USER=$(DB_USER) \
-e POSTGRES_PASSWORD=$(DB_PASSWORD) \
-p $(DB_PORT):5432 \

View File

@@ -2,6 +2,7 @@ version: '3'
services:
database:
build: ./
restart: always
env_file:
- .env
ports: