fix(docker): added pgvector image to docker builds, modified push to migrate to ameliorate vector data type issue (#452)

* added pgvector image to docker builds, modified push to migrate to ameliorate vector data type issue

* added zod and t3-ss/env-nextjs to minimal set of dependencies for db image

* added healthcheck to docker services
This commit is contained in:
Waleed Latif
2025-06-02 12:56:15 -07:00
committed by GitHub
parent d9e99a4fab
commit dcf6e10b5b
9 changed files with 374 additions and 415 deletions
+10 -3
View File
@@ -26,18 +26,25 @@ services:
condition: service_healthy
migrations:
condition: service_completed_successfully
healthcheck:
test: ['CMD', 'wget', '--spider', '--quiet', 'http://127.0.0.1:3000']
interval: 90s
timeout: 5s
retries: 3
start_period: 10s
migrations:
image: ghcr.io/simstudioai/migrations:latest
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@db:5432/${POSTGRES_DB:-simstudio}
depends_on:
- db
command: ['bun', 'run', 'db:push']
db:
condition: service_healthy
command: ['bun', 'run', 'db:migrate']
restart: 'no'
db:
image: postgres:17-alpine
image: pgvector/pgvector:pg17
restart: unless-stopped
ports:
- '5432:5432'