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-09-03 11:27:27 -07:00
|
|
|
version: '2'
|
2021-08-26 09:21:08 -07:00
|
|
|
|
2021-09-03 11:27:27 -07:00
|
|
|
services:
|
|
|
|
|
mongo-ipfs-service:
|
|
|
|
|
image: mongo
|
|
|
|
|
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-09-03 11:27:27 -07:00
|
|
|
ipfs-service:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: ipfs-service
|
|
|
|
|
logging:
|
|
|
|
|
driver: 'json-file'
|
|
|
|
|
options:
|
|
|
|
|
max-size: '10m'
|
|
|
|
|
max-file: '10'
|
2021-09-28 18:14:18 -07:00
|
|
|
mem_limit: 1gb
|
2021-09-03 11:27:27 -07:00
|
|
|
links:
|
|
|
|
|
- mongo-ipfs-service
|
|
|
|
|
ports:
|
|
|
|
|
- '5001:5001' # <host port>:<container port>
|
|
|
|
|
- '4001:4001' # IPFS TCP
|
|
|
|
|
- '4003:4003' # IPFS WS
|
|
|
|
|
volumes:
|
|
|
|
|
- ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata
|
|
|
|
|
restart: always
|