From f28d2c6c341bf3d4a9cd25cac15a04b4cbaaa2bb Mon Sep 17 00:00:00 2001 From: Pl217 Date: Mon, 27 Nov 2023 11:27:37 +0100 Subject: [PATCH] HPC-9088: Use default container names 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 --- compose.integrated.yaml | 1 - compose.yaml | 2 -- 2 files changed, 3 deletions(-) diff --git a/compose.integrated.yaml b/compose.integrated.yaml index 9e75c575..72b0c711 100644 --- a/compose.integrated.yaml +++ b/compose.integrated.yaml @@ -1,6 +1,5 @@ services: api: - container_name: hpc_api build: context: . dockerfile: ./env/api/Dockerfile diff --git a/compose.yaml b/compose.yaml index e8113b5c..ac833d5b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,5 @@ services: api: - container_name: hpc_api build: context: . dockerfile: ./env/api/Dockerfile @@ -26,7 +25,6 @@ services: - db db: image: postgres:11.7 - container_name: hpc_postgres_db environment: - POSTGRES_PASSWORD=demo - POSTGRES_USER=demo