-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfull-docker.yml
74 lines (74 loc) · 2.04 KB
/
full-docker.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
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
version: '2.1'
services:
ipfs:
image: ipfs/kubo:latest
restart: always
environment:
- IPFS_PATH=/data/ipfs
network_mode: host
# ports:
# - "4001:4001"
# - "8080:8080"
# - "127.0.0.1:5001:5001"
command: ["daemon", "--migrate=true", "--agent-version-suffix=docker", "--enable-gc"]
volumes:
- ipfs:/data/ipfs
- ./ipfs-init.sh:/container-init.d/ipfs-init.sh
container_name: ipfs
healthcheck:
test: ["CMD", "wget", "http://localhost:8080/ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn"]
interval: 5s
timeout: 1s
retries: 5
networks:
- trole
poa:
depends_on:
ipfs:
condition: service_healthy
image: disregardfiat/poa:0.0.2
restart: unless-stopped
command: ["./main", "-node", "2", "-username", "${ACCOUNT}", "-WS_PORT=8002", "-useWS=true", "-honeycomb=true", "-IPFS_PORT=5001", "-validators", "https://spktest.dlux.io/services/VAL"]
# ports:
# - "8000-8001:8000-8001"
container_name: poa
network_mode: host
poav:
depends_on:
ipfs:
condition: service_healthy
image: disregardfiat/poa:0.0.2
restart: unless-stopped
command: ["./main", "-node", "1", "-username", "${ACCOUNT}", "-WS_PORT=8001", "-useWS=true", "-honeycomb=true", "-IPFS_PORT=5001", "-validators", "https://spktest.dlux.io/services/VAL"]
# ports:
# - "8000-8001:8000-8001"
container_name: poa
network_mode: host
api:
depends_on:
ipfs:
condition: service_healthy
build: .
restart: unless-stopped
environment:
- PORT=5050
- ENDPOINT=127.0.0.1
- ENDPORT=5001
- DOCKER=true
# ports: #IPFS API with the default settings disallows the bridge adapter as traffic appears to come from 0.0.0.0 and not 127.0.0.1
# - "5050:5050"
volumes:
- ./.env:/.env
logging:
options:
max-size: "2m"
max-file: "3"
stdin_open: true
tty: true
network_mode: host
volumes:
ipfs:
driver: local
networks:
trole:
driver: bridge