Skip to content

Commit

Permalink
Added log limits
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaspcs committed Jan 29, 2024
1 parent 266f4b4 commit 0ae04b2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ services:
# it's required if you setup a proxy reverse like nginx or connection to a DB inside the same machine
# networks:
# master_network: # this is the network name
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"

plsworker:
build: .
Expand All @@ -28,6 +33,11 @@ services:
depends_on:
- redis
- adminpls
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"

plsbeat:
build: .
Expand All @@ -42,6 +52,11 @@ services:
depends_on:
- redis
- adminpls
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"

redis:
image: redis:latest
Expand All @@ -52,6 +67,11 @@ services:
- 6379:6379
# networks:
# - master_network
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"

# setup other packages/services like db, proxy reverse, etc.
# setup network if required look at the "networks" section above
Expand Down

0 comments on commit 0ae04b2

Please sign in to comment.