Merge pull request #33 from Permissionless-Software-Foundation/ct-unstable

fix(docker): Specifying max size for log files
This commit is contained in:
Chris Troutner
2021-09-03 11:29:37 -07:00
committed by GitHub
3 changed files with 37 additions and 33 deletions
+7 -7
View File
@@ -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"
+1 -1
View File
@@ -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",
+29 -25
View File
@@ -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' # <host port>:<container port>
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' # <host port>:<container port>
- '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' # <host port>:<container port>
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' # <host port>:<container port>
- '4001:4001' # IPFS TCP
- '4003:4003' # IPFS WS
volumes:
- ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata
restart: always