Files
StageAI/docker-compose.yml
CTO (LegalAI) 86f4ef9012
All checks were successful
Deploy to VPS / deploy (push) Successful in 38s
feat: add auto-incrementing version number (0.9.0.X) in footer
- Added version.json to track base version and build number
- Updated Gitea Actions workflow to bump build number on each deploy
- Footer now shows version number alongside commit hash
- Version passed as build arg through Docker build pipeline

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-12 20:54:01 +00:00

58 lines
1.4 KiB
YAML

services:
app:
build:
context: .
args:
COMMIT_HASH: ${COMMIT_HASH:-dev}
APP_VERSION: ${APP_VERSION:-0.9.0.1}
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: