-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (54 loc) · 1.15 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
50
51
52
53
54
version: '2.1'
services:
ipfs:
image: ipfs/kubo:latest
restart: always
environment:
- IPFS_PATH=/data/ipfs
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
networks:
- default
container_name: ipfs
poa:
image: disregardfiat/poa:0.0.2
restart: always
command: ["./main", "-node", "2", "-username", "${ACCOUNT}", "-WS_PORT=8002", "-useWS=true", "-honeycomb=true", "-IPFS_PORT=5001", "-validators", "https://spktest.dlux.io/services/VAL"]
ports:
- "8002-8003:8000-8001"
networks:
- default
container_name: poa
api:
build: .
restart: always
environment:
- PORT=5050
- ENDPOINT=ipfs
- ENDPORT=5001
- DOCKER=true
ports:
- "5050:5050"
volumes:
- ./.env:/.env
- db:/db/
networks:
- default
logging:
options:
max-size: "2m"
max-file: "3"
stdin_open: true
tty: true
volumes:
ipfs:
driver: local
db:
driver: local
networks:
default: