Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎样在laradock增加filebeat #2244

Closed
lzwmt opened this issue Aug 21, 2019 · 3 comments
Closed

怎样在laradock增加filebeat #2244

lzwmt opened this issue Aug 21, 2019 · 3 comments
Labels

Comments

@lzwmt
Copy link

lzwmt commented Aug 21, 2019

No description provided.

@yunlongw
Copy link

yunlongw commented Aug 24, 2019

1、在 docker-compose.yml 中增加配置

### Filebate ##############################################
    filebate:
      build: ./filebate
      volumes:
        - '${APP_CODE_PATH_HOST}project/runtime/log:/var/www/log/dev'
        - '${APP_CODE_PATH_HOST}project/runtime/log:/var/www/log/test'
        - './filebate/config/filebeat.yml:/usr/share/filebeat/filebeat.yml'
      env_file:
        - .env
      networks:
        - frontend
        - backend

2、创建配置文件
/filebate/config/filebeat.yml

3、增加 Dockerfile

FROM docker.elastic.co/beats/filebeat:6.5.4

COPY ./config/filebeat.yml /usr/share/filebeat/filebeat.yml
USER root
RUN chown root:filebeat /usr/share/filebeat/filebeat.yml

USER filebeat

@stale
Copy link

stale bot commented Feb 7, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Feb 7, 2020
@stale
Copy link

stale bot commented Feb 28, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants