Skip to content

Instantly share code, notes, and snippets.

@baiyongzhen
Created August 14, 2021 05:06
Show Gist options
  • Save baiyongzhen/a22483398fac5e00b87ad9660acd33d5 to your computer and use it in GitHub Desktop.
Save baiyongzhen/a22483398fac5e00b87ad9660acd33d5 to your computer and use it in GitHub Desktop.
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