-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
postgres:
image: postgres:17-alpine
container_name: paperless-ai-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-paperless}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-paperless}
POSTGRES_DB: ${POSTGRES_DB:-paperless-ai-ngx}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
[
'CMD-SHELL',
'pg_isready -U ${POSTGRES_USER:-paperless} -d ${POSTGRES_DB:-paperless-ai-ngx}',
]
interval: 10s
timeout: 5s
retries: 5
networks:
- paperless-ai-network
web:
build:
context: .
dockerfile: apps/web/Dockerfile
container_name: paperless-ai-web
restart: unless-stopped
ports:
- '${WEB_PORT:-3000}:3000'
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-paperless}:${POSTGRES_PASSWORD:-paperless}@postgres:5432/${POSTGRES_DB:-paperless-ai-ngx}
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required}
ADMIN_INITIAL_PASSWORD: ${ADMIN_INITIAL_PASSWORD:-changeme}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:?ENCRYPTION_KEY is required}
NODE_ENV: production
depends_on:
postgres:
condition: service_healthy
networks:
- paperless-ai-network
mcp-server:
build:
context: .
dockerfile: apps/mcp-server/Dockerfile
container_name: paperless-ai-mcp
restart: unless-stopped
ports:
- '${MCP_PORT:-3001}:3001'
environment:
MCP_PORT: 3001
MCP_HOST: '0.0.0.0'
LOG_LEVEL: ${LOG_LEVEL:-info}
JWT_SECRET: ${MCP_JWT_SECRET:-}
API_TOKEN: ${MCP_API_TOKEN:-}
networks:
- paperless-ai-network
volumes:
postgres_data:
networks:
paperless-ai-network:
driver: bridge