Files
Phantom/release/docker-compose.simple.yml

59 lines
1.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Упрощенный Docker Compose для демонстрации Phantom Protocol
# Без сетевых функций для совместимости с sandbox средой
version: '3.8'
networks:
phantom-simple:
driver: bridge
volumes:
phantom-data:
driver: local
services:
# Основной узел Phantom
phantom-demo:
build:
context: .
dockerfile: Dockerfile.simple
container_name: phantom-demo
hostname: phantom-demo
networks:
- phantom-simple
ports:
- "8080:8080" # Основной порт
- "8081:8081" # Kademlia DHT
volumes:
- phantom-data:/home/phantom/data
- ./logs:/home/phantom/logs
environment:
- PHANTOM_NODE_NAME=demo
- PHANTOM_PORT=8080
- PHANTOM_KAD_PORT=8081
- PHANTOM_LOG_LEVEL=INFO
- PHANTOM_DEMO_MODE=true
restart: unless-stopped
command: ["bash", "-c", "echo 'Phantom Protocol Demo Node Started' && sleep infinity"]
# Простой веб-интерфейс для мониторинга
phantom-web:
image: nginx:alpine
container_name: phantom-web
hostname: phantom-web
networks:
- phantom-simple
ports:
- "8090:80"
volumes:
- ./docker/monitor:/usr/share/nginx/html:ro
- ./logs:/var/log/phantom:ro
environment:
- NGINX_HOST=phantom-web
- NGINX_PORT=80
depends_on:
- phantom-demo
restart: unless-stopped