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

Removing version from docker compose file #690

Merged
merged 2 commits into from
May 24, 2024
Merged

Removing version from docker compose file #690

merged 2 commits into from
May 24, 2024

Conversation

filter182
Copy link
Contributor

@filter182 filter182 commented May 24, 2024

Internal discussion with Konstantin, during a testing on local server we found some warning about the version is now obsolete, according to the Docker documentation the legacy versions 2.x and 3.x of the Compose file format were merge in the Compose Specification, it was implemented in version 1.27.0 (Compose V2) of the Docker Compose CLI as per this article.

This PR fixes the warning shown when running the command composer server that is specified in line 816 'version' => '2.3', , commenting that line and removing the version directly from proxy.yml fixed the warning during the local server start/creation.

Copy link
Contributor

@ferschubert-hm ferschubert-hm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@filter182 filter182 merged commit 7f58619 into master May 24, 2024
2 checks passed
@filter182 filter182 deleted the jc-local-1 branch May 24, 2024 19:15
@@ -813,7 +813,7 @@ public function get_array() : array {

// Default compose configuration.
$config = [
'version' => '2.3',
// 'version' => '2.5',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this comment here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes the warning message WARN[0000] /home/jcmarin/composetest/compose.yml: version is obsolete when running the composer server command, this was deprecated as per this article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants