From ec75d01b32d3c96502d859e04aab9becbcd619e7 Mon Sep 17 00:00:00 2001 From: tarasovne Date: Sun, 23 Feb 2025 20:15:28 +0300 Subject: [PATCH] CUMpose --- compose.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index 657a334..4d74047 100644 --- a/compose.yml +++ b/compose.yml @@ -3,4 +3,16 @@ services: build: ./nestjs/backend ports: - 3000:3000 - restart: unless-stopped \ No newline at end of file + restart: unless-stopped + postgres: + image: postgres:latest + container_name: postgres_container + restart: always + environment: + POSTGRES_USER: nichtar + POSTGRES_PASSWORD: 1234 + POSTGRES_DB: todo + ports: + - "5432:5432" + volumes: + - postgres_data:/var/lib/postgresql/data \ No newline at end of file