Add new deps, writen a db engine, docker-compose and .env-example

This commit is contained in:
d3m0k1d
2025-11-23 14:09:32 +03:00
parent 2aa2c0a3fa
commit e1b13d6557
8 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
services:
postgres:
image: postgres:18-alpine3.22
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres:/var/lib/postgresql/data
networks:
- backend
backend:
build: .
ports:
- "8000:8000"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
depends_on:
- postgres
networks:
- backend
volumes:
postgres:
driver: local
networks:
backend:
driver: bridge