Skip to content

Instantly share code, notes, and snippets.

@normoes
Created October 10, 2018 10:25
Show Gist options
  • Save normoes/c8f080dfa519d87da0166ed94d3915cb to your computer and use it in GitHub Desktop.
Save normoes/c8f080dfa519d87da0166ed94d3915cb to your computer and use it in GitHub Desktop.
forward request and error logs to docker log collector

Like done in the official nginx docker image:

# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
	&& ln -sf /dev/stderr /var/log/nginx/error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment