feat: add database

This commit is contained in:
Sergey Krylov 2026-02-26 05:30:10 +03:00
parent 3faa214d18
commit 2771cb354e
2 changed files with 19 additions and 0 deletions

3
.env Normal file
View File

@ -0,0 +1,3 @@
POSTGRES_USER='postgres'
POSTGRES_PASSWORD='123456'
POSTGRES_PORT=5434

16
compose.yml Normal file
View File

@ -0,0 +1,16 @@
version: '3.9'
name: tinder-clone
services:
postgres:
container_name: tinder-clone-postgres
image: postgres:15-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: