Skip to content

Commit

Permalink
Add "container_name"s on docker-compose for easier referencing.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
victor-salles committed Jun 22, 2022
1 parent c3cb112 commit d31991a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ version: '3.6'
services:
database:
image: postgres
container_name: bothub-db
ports:
- 5432:5432
volumes:
Expand All @@ -27,6 +28,7 @@ services:

bothub:
image: ${DOCKER_IMAGE_NAME:-ilha/bothub}:${TAG:-latest}
container_name: bothub-backend
build:
context: .
dockerfile: Dockerfile
Expand Down Expand Up @@ -77,6 +79,7 @@ services:
build:
context: .
dockerfile: Dockerfile
container_name: bothub-celery
depends_on:
- bothub
- bothub-engine-celery-redis
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d31991a

Please sign in to comment.