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

server refuses to listen to the config.toml or the docker-compose.yml and even doesnt listen to the .env file #64

Open
cordlessblues opened this issue May 21, 2024 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@cordlessblues
Copy link

cordlessblues commented May 21, 2024

when i run sudo docker compose up the server overwrites the config file with some default file and ive tried everything from editing docker-compose.yml to even edit the .envfile and putting it in the same directory as docker-compose.yml
i have attacted my docker-compose.yml file .env file and the ServerConfig.toml file in a zip file because of github file format limitations

image_2024-05-20_193643909
Files in the server directory

image_2024-05-20_193743759
output in console it defaults on me every time

ServerFiles.zip

where am i going wrong?

@KoenM9264
Copy link

KoenM9264 commented Nov 3, 2024

cordlessblues I have the exact same issue. If you want a working docker one, I am using this one:

https://github.com/mbentley/docker-beammp-server

@RouHim
Copy link
Owner

RouHim commented Nov 3, 2024

Which parameter does not work? Which OS? A bit more information is needed to address your issues.
Did you follow the instructions on the README file:

Make sure to create the file first, otherwise docker will create a directory instead.

If you are getting permission errors, you can fix them with: chmod 777 ServerConfig.toml

@KoenM9264
Copy link

Basically, everything works, except the server ignores, then re-writes the config.toml file. For example, I set the map to be west coast usa, and when i start the container, it overwrites the serverconfog.toml to the default, which is gridmap. I am on macOS with docker, and yes, I created the config file first. Thanks for your quick response!

@RouHim
Copy link
Owner

RouHim commented Nov 3, 2024

Can you please try to set the map via ".env" file?
cp .env.example .env

@KoenM9264
Copy link

I could not get the .env.example file to work at all, so that is why I am trying to use the config.toml. if that makes sense. sorry.

@RouHim
Copy link
Owner

RouHim commented Nov 3, 2024

So you just have to copy the "cp .env.example" to a file called ".env".
Maybe is it an macos issue?

@KoenM9264
Copy link

ohhhh ok, let me try that. Do i need to add it as a volume in docker compose?

@RouHim
Copy link
Owner

RouHim commented Nov 3, 2024

No, just follow this steps:

  1. Create a new file in the same directory as the docker-compose.yml file called .env
  2. Open the .env file with a text editor
  3. Copy the content of this file: https://github.com/RouHim/beammp-container-image/blob/main/.env.example in the text editor and save the file
  4. Adjust the values in the .env file to your needs (and save)
  5. (Re)start the container

@KoenM9264
Copy link

ok, testing now.

@KoenM9264
Copy link

ok, it now works. Thanks a lot RouHim For some reason, the serverconfig.toml option does not work, but this one works. I also like it better than the one I posted above, as it is docker compose. Thanks again!

@RouHim
Copy link
Owner

RouHim commented Nov 3, 2024

Ok thanks for testing, I'll keep this issue open until I've fixed the server config toml issue.

@KoenM9264
Copy link

Alright, thanks a lot. One other thing, atleast for macOS, is it would be helpful if you changed the instructions to be to "rename the .env.example to ".env", and change as needed", as that is what I needed to do. Anything else you need me to test, just let me know.

@RouHim
Copy link
Owner

RouHim commented Nov 4, 2024

Ok thanks, I'll update the docs.

RouHim added a commit that referenced this issue Nov 17, 2024
@RouHim RouHim added the bug Something isn't working label Dec 19, 2024
@RouHim RouHim self-assigned this Dec 25, 2024
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

No branches or pull requests

3 participants