Files
thoughts/compose.yml
Gabriel Kaszewski dd7beb7ab4
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m9s
test / unit (pull_request) Successful in 16m14s
test / integration (pull_request) Failing after 17m3s
chore: add compose.yml for local dev (postgres + nats)
2026-05-14 16:22:16 +02:00

27 lines
548 B
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: thoughts
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
nats:
image: nats:2-alpine
ports:
- "4222:4222"
- "8222:8222" # monitoring endpoint
command: ["--http_port", "8222"]
volumes:
postgres_data: