From 2771cb354ece19b8e225535a710a3d5b295072c9 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Thu, 26 Feb 2026 05:30:10 +0300 Subject: [PATCH] feat: add database --- .env | 3 +++ compose.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .env create mode 100644 compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..2a0c8a9 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +POSTGRES_USER='postgres' +POSTGRES_PASSWORD='123456' +POSTGRES_PORT=5434 \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..8fb5d7f --- /dev/null +++ b/compose.yml @@ -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: