-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.16 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# See https://docs.docker.com/compose/compose-file/ for information about what
# commands you can use in this file.
#
# Note that you must use the `docker stack deploy` command, with any required
# command line flags, in order to actually get any replicas started. That
# command requires that a docker swarm is already running in order to function.
version: "3"
services:
entryNode:
image: kadlab:latest
stdin_open: true
tty: true
ports:
- "8001:80"
networks:
kademlia_network:
ipv4_address: 172.20.0.2
container_name: entryNode
kademliaNodes:
image: kadlab:latest # Make sure your Docker image has this name.
depends_on:
- entryNode
stdin_open: true
tty: true
deploy:
mode: replicated
replicas: 49
# resources:
# limits:
# cpus: "0.1"
# memory: 50M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 10s
ports:
- ":80"
networks:
- kademlia_network
networks:
kademlia_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/16