mirror of
https://github.com/BrentNeale1/fx-quant.git
synced 2026-07-28 19:07:44 +00:00
4e2db68049
- Dockerfile: add templates copy, ENV PORT, update CMD to live engine - Create src/live/health.py: threaded HTTP health server (/health, /state) - Wire health server into src/live/run.py before engine loop - Dashboard: add unauthenticated /health endpoint, use PORT env var - Create railway.toml with Dockerfile builder and health check config - docker-compose.yml: rename service to live-engine, add PORT env vars Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
637 B
YAML
32 lines
637 B
YAML
services:
|
|
live-engine:
|
|
build: .
|
|
container_name: fx-quant-engine
|
|
env_file:
|
|
- config/.env
|
|
environment:
|
|
- PORT=8080
|
|
volumes:
|
|
- ./config:/app/config
|
|
- ./logs:/app/logs
|
|
- ./models:/app/models
|
|
ports:
|
|
- "8080:8080"
|
|
restart: unless-stopped
|
|
|
|
dashboard:
|
|
build: .
|
|
container_name: fx-quant-dashboard
|
|
command: python src/dashboard.py
|
|
env_file:
|
|
- config/.env
|
|
environment:
|
|
- PORT=5000
|
|
volumes:
|
|
- ./config:/app/config
|
|
- ./logs:/app/logs:ro
|
|
- ./templates:/app/templates:ro
|
|
ports:
|
|
- "5000:5000"
|
|
restart: unless-stopped
|