All checks were successful
Deploy to VPS / deploy (push) Successful in 52s
Uploaded documents were lost on every redeploy because /app/uploads had no persistent volume. Add uploads_data volume to docker-compose. Co-Authored-By: Paperclip <noreply@paperclip.ing>
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
args:
|
|
COMMIT_HASH: ${COMMIT_HASH:-dev}
|
|
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}
|
|
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
|
volumes:
|
|
- uploads_data:/app/uploads
|
|
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:
|
|
uploads_data:
|