-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-host.yml
42 lines (42 loc) · 1.01 KB
/
docker-host.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
version: '2.1'
services:
ipfs:
image: ipfs/kubo:latest
restart: always
environment:
- IPFS_PATH=/data/ipfs
network_mode: host
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
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"]
network_mode: host
container_name: poa
api:
build: .
restart: always
environment:
- PORT=5050
- ENDPOINT=127.0.0.1
- ENDPORT=5001
- DOCKER=true
network_mode: host
volumes:
- ./.env:/.env
- db:/db/
logging:
options:
max-size: "2m"
max-file: "3"
stdin_open: true
tty: true
volumes:
ipfs:
driver: local
db:
driver: local