Created
October 14, 2023 16:35
-
-
Save dublado/a8f28980855cca31f6280a867e10bfdf to your computer and use it in GitHub Desktop.
docker compose logging options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#docker run --log-opt max-size=10m --log-opt max-file=3 <IMAGE_NAME> | |
version: '3' | |
services: | |
my-service: | |
image: <IMAGE_NAME> | |
logging: | |
options: | |
max-size: "10m" | |
max-file: "3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment