-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (111 loc) · 2.93 KB
/
docker-compose.yml
File metadata and controls
118 lines (111 loc) · 2.93 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: opslens
POSTGRES_PASSWORD: opslens
POSTGRES_DB: opslens
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U opslens -d opslens"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
networks:
- opslens-network
redis:
image: redis:7-alpine
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- opslens-network
notion-mcp-server:
image: node:20-slim
command: npx -y @notionhq/notion-mcp-server --transport http --port 3100 --auth-token ${MCP_AUTH_TOKEN}
environment:
NOTION_TOKEN: ${NOTION_TOKEN}
ports:
- "3100:3100"
healthcheck:
test: ["CMD-SHELL", "curl -sf -H 'Authorization: Bearer ${MCP_AUTH_TOKEN}' http://localhost:3100/mcp || exit 1"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
networks:
- opslens-network
celery-worker:
build: .
command: celery -A src.tasks.celery_app worker --loglevel=info --concurrency=4
env_file: .env
environment:
DATABASE_URL: postgresql+asyncpg://opslens:opslens@postgres:5432/opslens
REDIS_URL: redis://redis:6379/0
NOTION_MCP_URL: http://notion-mcp-server:3100
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
networks:
- opslens-network
celery-beat:
build: .
command: celery -A src.tasks.celery_app beat --loglevel=info
env_file: .env
environment:
DATABASE_URL: postgresql+asyncpg://opslens:opslens@postgres:5432/opslens
REDIS_URL: redis://redis:6379/0
NOTION_MCP_URL: http://notion-mcp-server:3100
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
networks:
- opslens-network
opslens:
build: .
ports:
- "8000:8000"
env_file: .env
environment:
DATABASE_URL: postgresql+asyncpg://opslens:opslens@postgres:5432/opslens
REDIS_URL: redis://redis:6379/0
NOTION_MCP_URL: http://notion-mcp-server:3100
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
notion-mcp-server:
condition: service_healthy
volumes:
- ./frontend/dist:/app/src/dashboard
restart: unless-stopped
networks:
- opslens-network
volumes:
postgres_data:
driver: local
redis_data:
driver: local
networks:
opslens-network:
driver: bridge