mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
fix(production): Using bandwidth limited IPFS Docker container
This commit is contained in:
@@ -14,10 +14,15 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
ipfs:
|
ipfs:
|
||||||
image: ipfs/go-ipfs:v0.14.0
|
image: christroutner/trickle-ipfs:v1.0.1
|
||||||
|
#build:
|
||||||
|
# context: ./
|
||||||
|
# dockerfile: Dockerfile
|
||||||
container_name: ipfs
|
container_name: ipfs
|
||||||
environment:
|
environment:
|
||||||
MY_ENV_VAR: 'placeholder'
|
IPFS_DAEMON_ARGUMENTS: '--enable-pubsub-experiment --migrate=true --agent-version-suffix=docker --routing=dhtclient'
|
||||||
|
UPLOAD_KBPS: '1000'
|
||||||
|
DOWNLOAD_KBPS: '1000'
|
||||||
logging:
|
logging:
|
||||||
driver: 'json-file'
|
driver: 'json-file'
|
||||||
options:
|
options:
|
||||||
@@ -29,18 +34,11 @@ services:
|
|||||||
- 4003:4003
|
- 4003:4003
|
||||||
- 172.17.0.1:5001:5001
|
- 172.17.0.1:5001:5001
|
||||||
- 172.17.0.1:8080:8080
|
- 172.17.0.1:8080:8080
|
||||||
|
command: [
|
||||||
|
'./start-ipfs.sh'
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/go-ipfs/data:/data/ipfs
|
- ../data/go-ipfs/data:/root/.ipfs
|
||||||
# - ../../swarm.key:/data/ipfs/swarm.key
|
|
||||||
# https://docs.docker.com/compose/compose-file/compose-file-v3/#command
|
|
||||||
# https://github.com/ipfs/go-ipfs/blob/91c52657166bcf86f2476926e4fe56694dc26562/Dockerfile#L115
|
|
||||||
command:
|
|
||||||
[
|
|
||||||
'daemon',
|
|
||||||
'--migrate=true',
|
|
||||||
'--agent-version-suffix=docker',
|
|
||||||
'--enable-pubsub-experiment'
|
|
||||||
]
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
ipfs-service:
|
ipfs-service:
|
||||||
|
|||||||
Reference in New Issue
Block a user