Skip to content

Commit

Permalink
HPC-9088: Use default container names
Browse files Browse the repository at this point in the history
Compose generates container names based on the
project name, service name, and scale/replica count.

In Compose V1, an underscore (_) was used as the word separator.
In Compose V2, a hyphen (-) is used as the word separator.
https://docs.docker.com/compose/migrate/#service-container-names

Since existing container names aren't used anywhere else,
just remove them and use default names
  • Loading branch information
Pl217 committed Nov 24, 2023
1 parent 24b6669 commit f28d2c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion compose.integrated.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
api:
container_name: hpc_api
build:
context: .
dockerfile: ./env/api/Dockerfile
Expand Down
2 changes: 0 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
api:
container_name: hpc_api
build:
context: .
dockerfile: ./env/api/Dockerfile
Expand All @@ -26,7 +25,6 @@ services:
- db
db:
image: postgres:11.7
container_name: hpc_postgres_db
environment:
- POSTGRES_PASSWORD=demo
- POSTGRES_USER=demo
Expand Down

0 comments on commit f28d2c6

Please sign in to comment.