forked from Michael-A-Kuykendall/contextlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.minimal.yml
More file actions
56 lines (53 loc) · 1.44 KB
/
docker-compose.minimal.yml
File metadata and controls
56 lines (53 loc) · 1.44 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
version: '3.8'
services:
# Minimal ContextLite Server (SQLite only)
contextlite:
build:
context: .
dockerfile: docker/Dockerfile
target: production
image: contextlite/contextlite:latest
container_name: contextlite-minimal
ports:
- "8080:8080"
volumes:
- contextlite_minimal_data:/app/data
environment:
- CONTEXTLITE_ENV=minimal
- CONTEXTLITE_LOG_LEVEL=info
- CONTEXTLITE_HOST=0.0.0.0
- CONTEXTLITE_PORT=8080
- CONTEXTLITE_DATABASE=/app/data/contextlite.db
- CONTEXTLITE_CONFIG_PATH=/app/configs/minimal.yaml
- CONTEXTLITE_AUTH_TOKEN=${CONTEXTLITE_AUTH_TOKEN:-minimal-demo-token}
# Disable external dependencies
- CONTEXTLITE_DISABLE_POSTGRES=true
- CONTEXTLITE_DISABLE_REDIS=true
- CONTEXTLITE_DISABLE_CLICKHOUSE=true
- CONTEXTLITE_DISABLE_LICENSE_SERVER=true
networks:
- contextlite-minimal
restart: unless-stopped
healthcheck:
test: ["CMD", "/app/contextlite", "--health-check"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
labels:
- "com.contextlite.component=core"
- "com.contextlite.tier=minimal"
volumes:
contextlite_minimal_data:
driver: local
networks:
contextlite-minimal:
driver: bridge