Skip to content

Instantly share code, notes, and snippets.

@dublado
Created October 14, 2023 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dublado/a8f28980855cca31f6280a867e10bfdf to your computer and use it in GitHub Desktop.
Save dublado/a8f28980855cca31f6280a867e10bfdf to your computer and use it in GitHub Desktop.
docker compose logging options
#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