Files
hyper/docker-compose.yml
DiTus 1a95fe1caa Clean up unused files, organize structure, update docs
- Delete obsolete files: data_fetcher_old.py, market_old.py, base_strategy.py (root),
  strategy_sma_cross.py, and old architecture remnants (address_monitor.py,
  position_monitor.py, trade_log.py, wallet_data.py, whale_tracker.py)
- Delete zero-byte Docker artifacts and runtime files (clp_hedger.log,
  clp_hedger/hedge_status.json)
- Move one-off utility scripts to scripts/ directory
- Move example/template files to .temp/ directory
- Update .gitignore: add entries for clp_hedger.log, clp_hedger/hedge_status.json,
  Docker layer hash files, Using, Running, and backups/
- Update .dockerignore: add clp_hedger.log, clp_hedger/hedge_status.json, backups/
- Create example config files: _data/strategies.json.example,
  _data/backtesting_conf.json.example, _data/coin_precision.json.example
- Update GEMINI.md: remove outdated session summaries and duplicate review section
- Update review.md: add cleanup status section, update remaining recommendations
- Update MIGRATION_PLAN.md: mark completed phases, update file references
- Update DOCKER_MIGRATION_GUIDE.md: update import_csv.py path reference
2026-08-05 09:50:36 +02:00

51 lines
1.1 KiB
YAML

services:
postgres:
image: postgres:15-alpine
container_name: hyper_pg
restart: unless-stopped
environment:
POSTGRES_DB: hyper
POSTGRES_USER: hyper
POSTGRES_PASSWORD: kaqpaaoi0
volumes:
- pg_data:/var/lib/postgresql/data
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf
command: postgres -c config_file=/etc/postgresql/postgresql.conf
ports:
- "5433:5432"
networks:
- hyper_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U [secret] -d [secret]"]
interval: 10s
timeout: 5s
retries: 5
data-collector:
image: hyper-data-collector:latest
container_name: hyper_data
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- .env.docker
environment:
- PYTHONPATH=/app
volumes:
- ./_data:/app/_data
- ./_logs:/app/_logs
- ./secrets:/app/secrets
- /volume2/docker/hyper/backups:/backups
networks:
- hyper_net
volumes:
pg_data:
networks:
hyper_net:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/16