Adding setup for postgres docker compose + connection from app.

This commit is contained in:
Tomasz Półgrabia 2024-07-29 23:14:42 +02:00
parent 4282cc4b12
commit fad73f26de
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,11 @@
services:
db:
image: postgres:11
ports:
- '5432:5432'
volumes:
- '/opt/db_data:/var/lib/postgresql/data'
environment:
POSTGRES_PASSWORD: pass
POSTGRES_DB: repo
POSTGRES_USER: db_user