Created
June 14, 2018 03:22
-
-
Save ykyuen/47765ed7f596c3dc2f59b000fef3ac16 to your computer and use it in GitHub Desktop.
docker-container-log-rotation-04
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
version: '3.2' | |
services: | |
nginx: | |
image: 'nginx:latest' | |
ports: | |
- '80:80' | |
logging: | |
driver: "json-file" | |
options: | |
max-size: "1k" | |
max-file: "3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment