-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
75 lines (70 loc) · 2.04 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.8'
services:
node_one:
build: ./blockchain
command: python run_node.py --ip=0.0.0.0 --node_port=8010 --api_port=8050 --key_file=./keys/genesis_private_key.pem
volumes:
- ./blockchain:/usr/src/node
environment:
- USE_DOCKER=True
- DOCKER_NODE_CONTAINER_NAMES=node_one,node_two,node_three
- DOCKER_NODE_PORTS=8010,8011,8012
labels:
com.datadoghq.ad.logs: '[{"service": "blockchain_node", "source": "python"}]'
ports:
- 8010:8010
- 8050:8050
networks:
- host
node_two:
build: ./blockchain
command: python run_node.py --ip=0.0.0.0 --node_port=8011 --api_port=8051 --key_file=./keys/staker_private_key.pem
entrypoint: ['/usr/src/node/entrypoint.sh']
volumes:
- ./blockchain:/usr/src/node
environment:
- USE_DOCKER=True
- DOCKER_NODE_CONTAINER_NAMES=node_one,node_two,node_three
- DOCKER_NODE_PORTS=8010,8011,8012
labels:
com.datadoghq.ad.logs: '[{"service": "blockchain_node", "source": "python"}]'
ports:
- 8011:8011
- 8051:8051
depends_on:
- node_one
networks:
- host
node_three:
build: ./blockchain
command: python run_node.py --ip=0.0.0.0 --node_port=8012 --api_port=8052
entrypoint: ['/usr/src/node/entrypoint.sh']
volumes:
- ./blockchain:/usr/src/node
environment:
- USE_DOCKER=True
- DOCKER_NODE_CONTAINER_NAMES=node_one,node_two,node_three
- DOCKER_NODE_PORTS=8010,8011,8012
labels:
com.datadoghq.ad.logs: '[{"service": "blockchain_node", "source": "python"}]'
ports:
- 8012:8012
- 8052:8052
depends_on:
- node_one
networks:
- host
# datadog:
# image: gcr.io/datadoghq/agent:latest
# container_name: datadog-agent
# env_file:
# - ./.env
# attach: false # Disable verbose container logs
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - /proc/:/host/proc/:ro
# - /sys/fs/cgroup:/host/sys/fs/cgroup:ro
# networks:
# - host
networks:
host: