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
+9 -5
View File
@@ -1,5 +1,8 @@
# Start the testnet server with the command 'docker-compose up -d'
# Start the service with the command 'docker-compose up -d'
version: '2'
services:
mongo-ipfs-service:
image: mongo
container_name: mongo-ipfs-service
@@ -12,8 +15,12 @@ mongo-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