Skip to content

Instantly share code, notes, and snippets.

@adnanrahic
Created May 27, 2020 07:45
Show Gist options
  • Save adnanrahic/489500154d2e87b93df3ac709a93fb00 to your computer and use it in GitHub Desktop.
Save adnanrahic/489500154d2e87b93df3ac709a93fb00 to your computer and use it in GitHub Desktop.
version: "3.7"
services:
webserver-1:
image: nginx
environment:
- LOGS_ENABLED=true
ports:
- "90:3000"
webserver-2:
image: nginx
environment:
- LOGS_ENABLED=false
ports:
- "80:3000"
st-logagent:
image: 'sematext/logagent:test'
environment:
- LOGS_TOKEN=your-token
- LOGS_ENABLED_DEFAULT=false
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
- foo
networks:
elastic:
driver: foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment