Skip to content

Commit 893ccbf

Browse files
fyalavuzToby McLaughlin
authored andcommitted
Update docker-compose.yml
container names added
1 parent b7727bb commit 893ccbf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ services:
1919
#
2020
elasticsearch:
2121
image: docker.elastic.co/elasticsearch/elasticsearch-platinum:${TAG}
22+
container_name: elasticsearch
2223
environment: ['http.host=0.0.0.0', 'transport.host=127.0.0.1', 'ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
2324
ports: ['127.0.0.1:9200:9200']
2425
networks: ['stack']
2526

2627
kibana:
2728
image: docker.elastic.co/kibana/kibana:${TAG}
29+
container_name: kibana
2830
environment:
2931
- ELASTICSEARCH_USERNAME=kibana
3032
- ELASTICSEARCH_PASSWORD=${ELASTIC_PASSWORD}
@@ -34,6 +36,7 @@ services:
3436

3537
logstash:
3638
image: docker.elastic.co/logstash/logstash:${TAG}
39+
container_name: logstash
3740
environment:
3841
- 'xpack.monitoring.elasticsearch.password=${ELASTIC_PASSWORD}'
3942
# Provide a simple pipeline configuration for Logstash with a bind-mounted file.
@@ -44,6 +47,7 @@ services:
4447

4548
auditbeat:
4649
image: docker.elastic.co/beats/auditbeat:${TAG}
50+
container_name: auditbeat
4751
cap_add: ['AUDIT_CONTROL', 'AUDIT_READ']
4852
# Auditbeat must run in the main process namespace.
4953
pid: host
@@ -52,6 +56,7 @@ services:
5256

5357
filebeat:
5458
image: docker.elastic.co/beats/filebeat:${TAG}
59+
container_name: filebeat
5560
# If the host system has logs at "/var/log", mount them at "/mnt/log"
5661
# inside the container, where Filebeat can find them.
5762
# volumes: ['/var/log:/mnt/log:ro']
@@ -65,6 +70,7 @@ services:
6570

6671
metricbeat:
6772
image: docker.elastic.co/beats/metricbeat:${TAG}
73+
container_name: metricbeat
6874
# The commented sections below enable Metricbeat to monitor the Docker host,
6975
# rather than the Metricbeat container. It's problematic with Docker for
7076
# Windows, however, since "/proc", "/sys" etc. don't exist on Windows.
@@ -79,6 +85,7 @@ services:
7985

8086
packetbeat:
8187
image: docker.elastic.co/beats/packetbeat:${TAG}
88+
container_name: packetbeat
8289
# Packetbeat needs some elevated privileges to capture network traffic.
8390
# We'll grant them with POSIX capabilities.
8491
cap_add: ['NET_RAW', 'NET_ADMIN']

0 commit comments

Comments
 (0)