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

Invalid version and name fields in docker-compose.yml #2597

Open
1 task done
Gowthamk007m opened this issue Jan 8, 2025 · 0 comments · May be fixed by #2599
Open
1 task done

Invalid version and name fields in docker-compose.yml #2597

Gowthamk007m opened this issue Jan 8, 2025 · 0 comments · May be fixed by #2599
Labels
bug Something isn't working

Comments

@Gowthamk007m
Copy link

Information about bug

The docker-compose.yml configuration file for setting up Frappe contains two issues:

1. Invalid version Field:

The version is set to 15.37, which is unsupported. Valid versions include "3.8" or "2.4".
Screenshot from 2025-01-08 14-01-50

2. Unsupported name Field:

The name field is not recognized by Docker Compose and should be omitted or set using the -p flag during execution.
Screenshot from 2025-01-08 14-01-34

Module

HR

Version

Frappe Version: Latest
ERPNext Version: Not applicable
Browser Version: Not applicable

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

➜  docker git:(develop) ✗ docker-compose up    
ERROR: Version "15.37" in "./docker-compose.yml" is invalid.
➜  docker git:(develop) ✗ docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
'name' does not match any of the regexes: '^x-'

You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
➜  docker git:(develop) ✗ sudo apt git python-is-python3 python3-dev python3-pip redis-server --version

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Gowthamk007m Gowthamk007m added the bug Something isn't working label Jan 8, 2025
Gowthamk007m added a commit to Gowthamk007m/hrms that referenced this issue Jan 8, 2025
Gowthamk007m added a commit to Gowthamk007m/hrms that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant