-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
35 lines (30 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM docker.elastic.co/logstash/logstash-oss:6.2.0
ARG version=0.1.0-dev
ARG build_date=unknown
ARG commit_hash=unknown
ARG vcs_url=unknown
ARG vcs_branch=unknown
LABEL org.label-schema.vendor="Softonic" \
org.label-schema.name="Logstash" \
org.label-schema.description="Logstash with outputs for ES in 3 different indexes: access, alerts and logs." \
org.label-schema.usage="/src/README.md" \
org.label-schema.url="https://github.com/bvis/docker-logstash/blob/master/README.md" \
org.label-schema.vcs-url=$vcs_url \
org.label-schema.vcs-branch=$vcs_branch \
org.label-schema.vcs-ref=$commit_hash \
org.label-schema.version=$version \
org.label-schema.schema-version="1.0" \
org.label-schema.docker.cmd.devel="" \
org.label-schema.docker.params="DEBUG=Activate all logs in stdout,\
ELASTICSEARCH_INDEX_PREFIX=Elasticsearch indexes prefix,\
ELASTICSEARCH_SSL=Elasticsearch endpoint is under HTTPS,\
ELASTICSEARCH_USER=Elasticsearch User,\
ELASTICSEARCH_PASSWORD=Elasticsearch password,\
ELASTICSEARCH_ADDR=Elasticsearch address,\
ELASTICSEARCH_PORT=Elasticserach port" \
org.label-schema.build-date=$build_date
ENV ELASTICSEARCH_ADDR=elasticsearch \
ELASTICSEARCH_PORT=9200
RUN rm -f /usr/share/logstash/pipeline/logstash.conf
COPY --chown=logstash:logstash rootfs /
ENTRYPOINT ["/docker-entrypoint.sh"]