Files
wikiplus/docker-compose.yml
2026-01-24 17:02:39 -06:00

32 lines
691 B
YAML

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: