-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 927 Bytes
/
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
# 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:
node:
image: kadlab:latest # Make sure your Docker image has this name.
stdin_open: true
tty: true
deploy:
mode: replicated
replicas: 0
# resources:
# limits:
# cpus: "0.1"
# memory: 50M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 10s
ports:
- "4001-4200:8080"
networks:
- kademlia_network
networks:
kademlia_network:
ipam:
driver: default
config:
- subnet: 10.10.0.0/16