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
version: '3.8'
services:
heliosdb:
image: heliosdb/nano:3.10
build:
context: ../..
dockerfile: deployment/docker/Dockerfile
ports:
- "5432:5432" # PostgreSQL protocol
- "8080:8080" # REST API
- "3306:3306" # MySQL protocol
volumes:
- heliosdb_data:/data
environment:
- HELIOSDB_MODE=server
- HELIOSDB_DATA_DIR=/data
- HELIOSDB_LOG_LEVEL=info
- HELIOSDB_REST_PORT=8080
- HELIOSDB_PG_PORT=5432
# Security (set these in production)
- HELIOSDB_API_KEY=${HELIOSDB_API_KEY:-}
- HELIOSDB_ENCRYPTION_KEY=${HELIOSDB_ENCRYPTION_KEY:-}
- HELIOSDB_JWT_SECRET=${HELIOSDB_JWT_SECRET:-}
# Performance tuning
- HELIOSDB_CACHE_SIZE_MB=512
- HELIOSDB_MAX_CONNECTIONS=100
command: >
heliosdb-nano start
--data-dir /data
--listen 0.0.0.0
--port 8080
--mysql
--mysql-listen 0.0.0.0:3306
healthcheck:
test:
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
volumes:
heliosdb_data:
driver: local
# Optional: Add these services for monitoring
# prometheus:
# image: prom/prometheus:latest
# ports:
# - "9090:9090"
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
#
# grafana:
# image: grafana/grafana:latest
# ports:
# - "3000:3000"
# environment:
# - GF_SECURITY_ADMIN_PASSWORD=admin