Skip to content

Instantly share code, notes, and snippets.

@adam-hert
Created May 11, 2017 19:21
Show Gist options
  • Save adam-hert/df63219fea46af7cb6626be440e8d755 to your computer and use it in GitHub Desktop.
Save adam-hert/df63219fea46af7cb6626be440e8d755 to your computer and use it in GitHub Desktop.
Logspout + setting the hostname
version: '2'
services:
example-service:
build:
dockerfile: Dockerfile
context: php/
container_name: example.php-service
ports:
- 3333:3000
logspout:
image: gliderlabs/logspout
container_name: example.logspout
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command:
syslog://logs5.papertrailapp.com:xxxx
environment:
- SYSLOG_HOSTNAME=my_custom_hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment