This directory contains deployment templates and configuration examples for the JGT Data Refresh Service in various environments.
# Install with service dependencies
pip install -e ".[serve]"
# Run one-time refresh
jgtservice --refresh-once -i EUR/USD -t H1
# Run daemon mode
jgtservice --daemon --all
# Run web server
jgtservice --web --port 8080
# Build and run with Docker Compose
cd examples/jgtservice
cp config/production.env .env
# Edit .env with your configuration
docker-compose up -d
# Run with monitoring stack
docker-compose --profile monitoring up -d
# Copy service file
sudo cp systemd/jgtservice.service /etc/systemd/system/
# Edit configuration
sudo nano /etc/systemd/system/jgtservice.service
# Enable and start service
sudo systemctl enable jgtservice
sudo systemctl start jgtservice
# Check status
sudo systemctl status jgtservice
config/production.env
- Production environment templateconfig/development.env
- Development environment template (to be created)systemd/jgtservice.service
- systemd service configurationdocker/Dockerfile
- Docker container imageconfig/docker-compose.yml
- Multi-container deploymentmonitoring/prometheus.yml
- Prometheus configuration (to be created)monitoring/grafana/
- Grafana dashboards (to be created)# Data storage paths
JGTPY_DATA=/path/to/current/data
JGTPY_DATA_FULL=/path/to/full/data
# Dropbox upload token
JGTPY_DROPBOX_APP_TOKEN=your_token_here
# Service settings
JGTPY_SERVICE_MAX_WORKERS=4
JGTPY_SERVICE_WEB_PORT=8080
JGTPY_SERVICE_REFRESH_INTERVAL=300
# Timeframe configuration
TRADABLE_TIMEFRAMES=m1,m5,m15,m30,H1,H4,D1
HIGH_TIMEFRAMES=H4,D1,W1
LOW_TIMEFRAMES=m1,m5,m15
# Security
JGTPY_API_KEY=optional_api_key
# Service health
curl http://localhost:8080/api/v1/health
# Service status
curl http://localhost:8080/api/v1/status
# Processing metrics
curl http://localhost:8080/api/v1/metrics
# systemd logs
journalctl -u jgtservice -f
# Docker logs
docker logs -f jgtservice
# File logs (if configured)
tail -f /var/log/jgtservice/jgtservice.log
JGTPY_SERVICE_MAX_WORKERS
based on available cores# Verbose logging
jgtservice --refresh-once --all --verbose
# Status check
jgtservice --status
# Test configuration
python -c "from jgtpy.service import JGTServiceConfig; print(JGTServiceConfig.from_env().validate())"
--refresh-once
modepip install -U jgtpy[serve]
For complete implementation details, see the main documentation: docs/jgtservice_implementation.md