diff --git a/package-lock.json b/package-lock.json index 800d0b8..85471b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "axios": "^0.21.1", "bcryptjs": "^2.4.3", "glob": "^7.1.6", - "ipfs-coord": "^6.5.6", + "ipfs-coord": "^6.6.0", "jsonrpc-lite": "^2.2.0", "jsonwebtoken": "^8.5.1", "jwt-bch-lib": "^1.3.0", @@ -10796,9 +10796,9 @@ } }, "node_modules/ipfs-coord": { - "version": "6.5.6", - "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.5.6.tgz", - "integrity": "sha512-Kp1EBRgpP081g1v53zbF0Qo99MXN/lhiIWoEqvDvRcOogSIaIRNoZTIxUozLxvZncAQxkZc7CevO6NTTc1dOtQ==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.6.0.tgz", + "integrity": "sha512-wCT+75QxL2fQ5AfdGFUoFgKAeHnnQ8HvyWGnUw0AmHAlB1eEaZiWR+2+WQmEja/A3irJ/gF/6FGlFpwsoN9bLQ==", "dependencies": { "bch-encrypt-lib": "^2.0.0", "orbit-db": "^0.26.1" @@ -35145,9 +35145,9 @@ } }, "ipfs-coord": { - "version": "6.5.6", - "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.5.6.tgz", - "integrity": "sha512-Kp1EBRgpP081g1v53zbF0Qo99MXN/lhiIWoEqvDvRcOogSIaIRNoZTIxUozLxvZncAQxkZc7CevO6NTTc1dOtQ==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ipfs-coord/-/ipfs-coord-6.6.0.tgz", + "integrity": "sha512-wCT+75QxL2fQ5AfdGFUoFgKAeHnnQ8HvyWGnUw0AmHAlB1eEaZiWR+2+WQmEja/A3irJ/gF/6FGlFpwsoN9bLQ==", "requires": { "bch-encrypt-lib": "^2.0.0", "orbit-db": "^0.26.1" diff --git a/package.json b/package.json index 933e5bb..ac0ff14 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "bcryptjs": "^2.4.3", "glob": "^7.1.6", "@chris.troutner/ipfs": "2.0.2", - "ipfs-coord": "^6.5.6", + "ipfs-coord": "^6.6.0", "jsonrpc-lite": "^2.2.0", "jsonwebtoken": "^8.5.1", "jwt-bch-lib": "^1.3.0", diff --git a/production/docker/docker-compose.yml b/production/docker/docker-compose.yml index 8fa994d..6135031 100644 --- a/production/docker/docker-compose.yml +++ b/production/docker/docker-compose.yml @@ -1,28 +1,32 @@ -# Start the testnet server with the command 'docker-compose up -d' +# Start the service with the command 'docker-compose up -d' -mongo-ipfs-service: - image: mongo - container_name: mongo-ipfs-service - ports: - - '5555:27017' # : - volumes: - - ../data/database:/data/db - command: mongod --logpath=/dev/null # -- quiet - restart: always +version: '2' -ipfs-service: - build: . - dockerfile: Dockerfile - container_name: ipfs-service - links: - - mongo-ipfs-service - ports: - - '5001:5001' # : - - '4001:4001' # IPFS TCP - - '4003:4003' # IPFS WS - volumes: - # - ./logs:/home/coinjoin/consolidating-coinjoin/logs - #- ./keys:/home/safeuser/keys - - ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata +services: + mongo-ipfs-service: + image: mongo + container_name: mongo-ipfs-service + ports: + - '5555:27017' # : + volumes: + - ../data/database:/data/db + command: mongod --logpath=/dev/null # -- quiet + restart: always - restart: always + ipfs-service: + build: . + container_name: ipfs-service + logging: + driver: 'json-file' + options: + max-size: '10m' + max-file: '10' + links: + - mongo-ipfs-service + ports: + - '5001:5001' # : + - '4001:4001' # IPFS TCP + - '4003:4003' # IPFS WS + volumes: + - ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata + restart: always