Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Modernize Docker Compose File #7086

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

isso-719
Copy link
Contributor

@isso-719 isso-719 commented Jun 25, 2024

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

This pull request did the following

  • Rename the file from docker-compose.yml to compose.yml .
  • Remove version top-level element on compose.yml .
  • Changed command used from docker-compose to docker compose.
  • Change related files.

Rename the file from docker-compose.yml to compose.yml .

The file name compose.yml is preferred.
https://docs.docker.com/compose/compose-application-model/#the-compose-file

Remove version top-level element on compose.yml .

Version top-level element is obsoleted.
https://docs.docker.com/compose/compose-file/04-version-and-name/#version-top-level-element-obsolete

When run test, system shows warning.

tests % ./tests_all.sh
WARN[0000] /Users/john/gorm/tests/docker-compose.yml: `version` is obsolete
...

Changed command used from docker-compose to docker compose.

The recommended command-line syntax is docker compose.
https://docs.docker.com/compose/migrate/#what-are-the-differences-between-compose-v1-and-compose-v2

Change related files.

docker-compose start => docker compose start
docker-compose up => docker compose up

User Case Description

@isso-719 isso-719 changed the title feat: Modernize Docker Compose feat: Modernize Docker Compose File Jun 25, 2024
@jinzhu
Copy link
Member

jinzhu commented Jun 28, 2024

It seems that docker-compose is still an alias of docker compose in the new version. Let's keep it for better compatibility.

@isso-719 isso-719 force-pushed the feature/isso/rename-docker-compose branch from 77c4348 to 5793f0f Compare June 28, 2024 09:02
@isso-719
Copy link
Contributor Author

It seems that docker-compose is still an alias of docker compose in the new version. Let's keep it for better compatibility.

@jinzhu
Thank you for your reply.
For compatibility, I reverted from the docker compose command to the docker-compose command.

Please check Files changed.
Thank you.

@jinzhu jinzhu merged commit c2515ce into go-gorm:master Sep 18, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants