Created
August 14, 2021 05:06
-
-
Save baiyongzhen/a22483398fac5e00b87ad9660acd33d5 to your computer and use it in GitHub Desktop.
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
services: | |
web1: | |
image: nginx:latest | |
ports: | |
- "8888:80" | |
depends_on: | |
- fluent-bit | |
command: [nginx-debug, '-g', 'daemon off;'] | |
logging: | |
driver: fluentd | |
options: | |
fluentd-address: "localhost:24224" | |
fluentd-async-connect: "false" | |
fluent-bit: | |
image: fluent/fluent-bit | |
volumes: | |
- ./conf/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf | |
- ./conf/parsers.conf:/fluent-bit/etc/parsers.conf | |
ports: | |
- "24224:24224" | |
- "2020:2020" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment