Skip to content

Instantly share code, notes, and snippets.

@Creatiwww
Last active June 19, 2020 01:05
Show Gist options
  • Save Creatiwww/96592cafecfa9e05ca75f5097963b35a to your computer and use it in GitHub Desktop.
Save Creatiwww/96592cafecfa9e05ca75f5097963b35a to your computer and use it in GitHub Desktop.

Revisions

  1. Creatiwww revised this gist Jun 19, 2020. No changes.
  2. Creatiwww created this gist Jun 19, 2020.
    24 changes: 24 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    version: '3.0'

    services:
    logs_app:
    build: ./logs_app/
    volumes:
    - filebeat_data:/var/log

    filebeat:
    build: ./filebeat/
    volumes:
    - "filebeat_data:/var/log"
    - "filebeat_data:/usr/share/filebeat/data:rw"
    - "/var/lib/docker/containers:/usr/share/dockerlogs/data:ro"
    - "/var/run/docker.sock:/var/run/docker.sock"

    logstash:
    build: ./logstash/
    expose:
    - 5044


    volumes:
    filebeat_data: