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-09-03 11:27:27 -07:00
|
|
|
ipfs-service:
|
2024-01-28 15:05:34 -08:00
|
|
|
build: .
|
|
|
|
|
#image: christroutner/ipfs-service-provider:v5.0.1
|
2021-09-03 11:27:27 -07:00
|
|
|
container_name: ipfs-service
|
|
|
|
|
logging:
|
|
|
|
|
driver: 'json-file'
|
|
|
|
|
options:
|
|
|
|
|
max-size: '10m'
|
|
|
|
|
max-file: '10'
|
2024-08-19 06:29:16 -07:00
|
|
|
mem_limit: 1000mb
|
2021-09-03 11:27:27 -07:00
|
|
|
links:
|
|
|
|
|
- mongo-ipfs-service
|
|
|
|
|
ports:
|
2025-02-23 10:34:00 -07:00
|
|
|
# <host port>:<container port>
|
|
|
|
|
- '5010:5010' # REST API
|
|
|
|
|
- '4001:4001' # TCP
|
|
|
|
|
- '4003:4003' # Websockets
|
|
|
|
|
- '4005:4005' # WebRTC
|
|
|
|
|
|
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
|