From cea65e0faabef8902e1b2edc4e92f64331e3bd9d Mon Sep 17 00:00:00 2001 From: kyle Date: Sun, 4 Oct 2026 04:35:08 +0000 Subject: [PATCH] Add docker-compose.yml Initial upload --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c90f674 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3.8' + +services: + backend: + build: . + ports: + - "3000:3000" + environment: + - DATABASE_URL=postgres://postgres:password@postgres:5432/mydb + - PORT=3000 + depends_on: + - postgres + + postgres: + image: postgres:16 + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=password + - POSTGRES_DB=mydb + volumes: + - postgres_data:/var/lib/postgresql/data + ports: + - "5432:5432" + +volumes: + postgres_data: \ No newline at end of file