Prevent error during "First Time Setup" when using Docker Compose v2.
Warning
2023-10-09 17:30 PM. This should be reverted. See comment.
Changes
changed Makefile's constructed name of docker container
Testing
Prune docker containers and volumes.
export API_NAME=authenticator
make init_dbs
Verify noError: No such container:path: authenticator_postgres_1:/.
Notes
Note
In Compose V1, an underscore (_) was used as the word separator. In Compose V2, a hyphen (-) is used as the word separator. Source. So, the Makefile should reference authenticator-postgres-1.
Important
From July 2023 Compose V1 stopped receiving updates. It's also no longer available in new releases of Docker Desktop.
Compose V2 is included with all currently supported versions of Docker Desktop. For more information, see Migrate to Compose V2.
Docker's documentation refers to and describes Compose V2 functionality.
Overview
Prevent error during "First Time Setup" when using Docker Compose v2.
Changes
Testing
export API_NAME=authenticator
make init_dbs
Error: No such container:path: authenticator_postgres_1:/
.Notes