36 lines
774 B
YAML
36 lines
774 B
YAML
|
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
|
||
|
|