Skip to content

Commit

Permalink
Specify the hostname for the Docker containers
Browse files Browse the repository at this point in the history
Makes it easier to identify containers when working inside their shells.
  • Loading branch information
sherpalabsio committed Jan 12, 2025
1 parent cafb917 commit 5b33aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .envrc.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export COMPOSE_PROJECT_NAME="local-sherpa"
export DOCKER_CONTAINER_NAME="local-sherpa-ubuntu"
# export DOCKER_CONTAINER_NAME="local-sherpa-ubuntu"

alias t="make test_zsh" # Test Zsh

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: '3.9'

services:
ubuntu:
hostname: ubuntu
build:
context: .
dockerfile: dockerfiles/ubuntu.dockerfile
Expand All @@ -12,6 +13,7 @@ services:
tty: true

min-shell-versions-ubuntu:
hostname: min-shell-versions-ubuntu
build:
context: .
dockerfile: dockerfiles/min_shell_versions_ubuntu.dockerfile
Expand Down

0 comments on commit 5b33aa3

Please sign in to comment.