DHT-kademlia-P2Psec/compose.yaml

36 lines
774 B
YAML
Raw Normal View History

2024-09-13 07:04:40 +02:00
services:
boot_container:
image: dht:latest
container_name: bootstrapper
volumes:
- ./shared_data:/shared
networks:
my_network:
ipv4_address: 10.0.0.10
ports:
- "6001:6001"
- "7001:7001"
command: ["./docker-gs-ping", "-c", "/shared/config_boot.ini"]
container1:
image: dht:latest
container_name: container1
volumes:
- ./shared_data:/shared
networks:
my_network:
ipv4_address: 10.0.0.101
ports:
- "6002:6001"
- "7002:7001"
command: ["./docker-gs-ping", "-c", "/shared/config1.ini"]
networks:
my_network:
name: dhtnet
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/16