Add docker-compose.yml

Initial upload
This commit is contained in:
2026-10-04 04:35:08 +00:00
parent 5582cfce39
commit cea65e0faa
+26
View File
@@ -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: