2021-09-03 11:27:27 -07:00
|
|
|
# Start the service with the command 'docker-compose up -d'
|
2021-08-26 09:21:08 -07:00
|
|
|
|
2021-12-29 17:46:05 -08:00
|
|
|
version: '3.9'
|
2021-08-26 09:21:08 -07:00
|
|
|
|
2021-09-03 11:27:27 -07:00
|
|
|
services:
|
|
|
|
|
mongo-ipfs-service:
|
2022-07-25 17:40:05 -07:00
|
|
|
image: mongo:4.2.0
|
2021-09-03 11:27:27 -07:00
|
|
|
container_name: mongo-ipfs-service
|
|
|
|
|
ports:
|
|
|
|
|
- '5555:27017' # <host port>:<container port>
|
|
|
|
|
volumes:
|
|
|
|
|
- ../data/database:/data/db
|
|
|
|
|
command: mongod --logpath=/dev/null # -- quiet
|
|
|
|
|
restart: always
|
2021-08-26 09:21:08 -07:00
|
|
|
|
2021-12-29 17:46:05 -08:00
|
|
|
ipfs:
|
2022-08-27 12:58:41 -07:00
|
|
|
image: christroutner/trickle-ipfs:v1.0.1
|
|
|
|
|
#build:
|
|
|
|
|
# context: ./
|
|
|
|
|
# dockerfile: Dockerfile
|
2021-12-29 17:46:05 -08:00
|
|
|
container_name: ipfs
|
|
|
|
|
environment:
|
2022-08-27 12:58:41 -07:00
|
|
|
IPFS_DAEMON_ARGUMENTS: '--enable-pubsub-experiment --migrate=true --agent-version-suffix=docker --routing=dhtclient'
|
|
|
|
|
UPLOAD_KBPS: '1000'
|
|
|
|
|
DOWNLOAD_KBPS: '1000'
|
2021-12-29 18:00:17 -08:00
|
|
|
logging:
|
|
|
|
|
driver: 'json-file'
|
|
|
|
|
options:
|
|
|
|
|
max-size: '10m'
|
|
|
|
|
max-file: '10'
|
|
|
|
|
mem_limit: 2000mb
|
2021-12-29 17:46:05 -08:00
|
|
|
ports:
|
|
|
|
|
- 4001:4001
|
2022-07-25 17:40:05 -07:00
|
|
|
- 4003:4003
|
2021-12-31 15:34:40 -08:00
|
|
|
- 172.17.0.1:5001:5001
|
|
|
|
|
- 172.17.0.1:8080:8080
|
2022-08-27 12:58:41 -07:00
|
|
|
command: [
|
|
|
|
|
'./start-ipfs.sh'
|
|
|
|
|
]
|
2021-12-29 17:46:05 -08:00
|
|
|
volumes:
|
2022-08-27 12:58:41 -07:00
|
|
|
- ../data/go-ipfs/data:/root/.ipfs
|
2021-12-29 17:46:05 -08:00
|
|
|
restart: always
|
|
|
|
|
|
2021-09-03 11:27:27 -07:00
|
|
|
ipfs-service:
|
2022-07-25 19:14:44 -07:00
|
|
|
#build: .
|
|
|
|
|
image: christroutner/ipfs-service-provider:v2.2.12
|
2021-09-03 11:27:27 -07:00
|
|
|
container_name: ipfs-service
|
|
|
|
|
logging:
|
|
|
|
|
driver: 'json-file'
|
|
|
|
|
options:
|
|
|
|
|
max-size: '10m'
|
|
|
|
|
max-file: '10'
|
2021-09-28 18:16:56 -07:00
|
|
|
mem_limit: 500mb
|
2021-09-03 11:27:27 -07:00
|
|
|
links:
|
|
|
|
|
- mongo-ipfs-service
|
2021-12-29 17:46:05 -08:00
|
|
|
- ipfs
|
2021-09-03 11:27:27 -07:00
|
|
|
ports:
|
2021-12-29 17:46:05 -08:00
|
|
|
- '5010:5010' # <host port>:<container port>
|
2021-09-03 11:27:27 -07:00
|
|
|
volumes:
|
|
|
|
|
- ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata
|
2022-07-25 17:56:02 -07:00
|
|
|
- ./start-production.sh:/home/safeuser/ipfs-service-provider/start-production.sh
|
2021-09-03 11:27:27 -07:00
|
|
|
restart: always
|