fix(docker): Specifying max size for log files

This commit is contained in:
Chris Troutner
2021-09-03 11:27:27 -07:00
parent 05043ac74d
commit 3a3376c303
+11 -7
View File
@@ -1,6 +1,9 @@
# Start the testnet server with the command 'docker-compose up -d'
# Start the service with the command 'docker-compose up -d'
mongo-ipfs-service:
version: '2'
services:
mongo-ipfs-service:
image: mongo
container_name: mongo-ipfs-service
ports:
@@ -10,10 +13,14 @@ mongo-ipfs-service:
command: mongod --logpath=/dev/null # -- quiet
restart: always
ipfs-service:
ipfs-service:
build: .
dockerfile: Dockerfile
container_name: ipfs-service
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
links:
- mongo-ipfs-service
ports:
@@ -21,8 +28,5 @@ ipfs-service:
- '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
restart: always