Adding docker files

This commit is contained in:
owenqwenstarsky
2026-01-24 17:02:39 -06:00
parent 7181791734
commit df9f598d87
4 changed files with 98 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
# ports:
# - "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/teachmesomethingnew
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=teachmesomethingnew
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data: