Files
StageAI/docker-compose.yml

50 lines
1.2 KiB
YAML

services:
app:
build: .
ports:
- "3002:3000"
environment:
- DATABASE_URL=postgresql://legalai:legalai@postgres:5432/legalai
- MEILISEARCH_URL=http://meilisearch:7700
- MEILISEARCH_API_KEY=${MEILISEARCH_API_KEY:-masterKey}
- NEXTAUTH_URL=http://100.81.230.53:3002
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- AI_PROVIDER=${AI_PROVIDER:-anthropic}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
depends_on:
postgres:
condition: service_healthy
meilisearch:
condition: service_started
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: legalai
POSTGRES_PASSWORD: legalai
POSTGRES_DB: legalai
ports:
- "5434:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U legalai"]
interval: 5s
timeout: 5s
retries: 5
meilisearch:
image: getmeili/meilisearch:v1.11
environment:
- MEILI_MASTER_KEY=${MEILISEARCH_API_KEY:-masterKey}
- MEILI_ENV=development
ports:
- "7700:7700"
volumes:
- meilisearch_data:/meili_data
volumes:
postgres_data:
meilisearch_data: