From d31991a721577c477646acf25fe35bc7dfe7710d Mon Sep 17 00:00:00 2001 From: Victor Salles Date: Wed, 22 Jun 2022 11:45:06 -0300 Subject: [PATCH] Add "container_name"s on docker-compose for easier referencing. When calling a container to launch a terminal, for example, you can just call it by it's name instead of it's container_id --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 306cb714..81c433d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,7 @@ version: '3.6' services: database: image: postgres + container_name: bothub-db ports: - 5432:5432 volumes: @@ -27,6 +28,7 @@ services: bothub: image: ${DOCKER_IMAGE_NAME:-ilha/bothub}:${TAG:-latest} + container_name: bothub-backend build: context: . dockerfile: Dockerfile @@ -77,6 +79,7 @@ services: build: context: . dockerfile: Dockerfile + container_name: bothub-celery depends_on: - bothub - bothub-engine-celery-redis @@ -121,11 +124,13 @@ services: bothub-engine-celery-redis: image: redis + container_name: bothub-redis ports: - 6379:6379 es: image: elasticsearch:7.14.1 + container_name: bothub-es environment: - discovery.type=single-node - bootstrap.memory_lock=true @@ -152,6 +157,7 @@ services: kibana: image: docker.elastic.co/kibana/kibana:7.14.1 + container_name: bothub-kibana environment: SERVER_NAME: kibana ELASTICSEARCH_HOSTS: http://es:9200