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

Configuration file for docker-compose setup #6

Open
majdal opened this issue Nov 5, 2021 · 6 comments
Open

Configuration file for docker-compose setup #6

majdal opened this issue Nov 5, 2021 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@majdal
Copy link

majdal commented Nov 5, 2021

Hello! Great work on this super useful tool!

I am following the instructions for the docker setup, which includes editing the config.properties file.

The sample config here gives some hints, but I'm having trouble getting a server instance up and running. I think it has to do with the server not being able to connect to the db.

Would you be able to provide a complete server config sample, with the values filled in. This is especially true for those of us who are not familiar with Java syntax. For example, I can't tell if database.server = mysql should be like that, or database.server = http://mysql.

Additionally, the sample docker-compose file exposes port 9306, while the config.properties suggests that it should be 3306.

In any case, it would be nice to have a minimalist config.properties that could get a new user like me up and running quickly.

@sebastian-raubach
Copy link
Member

Hi, thanks for posting this issue.
I've added a dedicated example to the Germinate documentation. It shows a complete docker-compose.yml setup as well as the relevant bits of the config.properties files of each Germinate and Gatekeeper:
https://germinateplatform.github.io/germinate-server/setup-example.html

Hope this helps clear things up.

@sebastian-raubach sebastian-raubach added the documentation Improvements or additions to documentation label Nov 8, 2021
@sebastian-raubach sebastian-raubach self-assigned this Nov 8, 2021
@majdal
Copy link
Author

majdal commented Nov 9, 2021

This is great - thank you, Sebastian.

I'm still having a bit of trouble with the authentication, however. I'm more of a Python user, so the Java errors are a bit cryptic to me...

For a reverse proxy, I used Caddy with the following config:

<my.domain>

reverse_proxy localhost:9080

reverse_proxy /auth localhost:9081

I setup gatekeeper to use the same domain name, because I assume there's some kind of cross site security issues that would rise otherwise.

But, I get a 404 when I visit ´my.domain/auth´. I tried to change web.base in the gatekeeper config to be web.base=https://<my.domain>/auth, which is the same value as gatekeeper.url in germinate's config.properties. Still the same error. Any tips?

@sebastian-raubach
Copy link
Member

Hi,
I'm not familiar with Caddy at all, unfortunately.
If you get a 404, then this has nothing to do with Germinate or Gatekeeper, as the request simply hasn't reached them yet.
Does your configuration work for the Germinate side of things at all?

@majdal
Copy link
Author

majdal commented Nov 16, 2021

Hello - I think it's a config problem rather than a reverse proxy problem. Because when I visit the page locally from the machine that's running docker (http://localhost:9081), I still get a 404.

The Germinate side renders perfectly, though.

@sebastian-raubach
Copy link
Member

The only error in the example configuration I could find was this line:

web.base=http://localhost:8082/

which should have been

web.base=http://localhost:9081/

I've got the exact configuration from the example running on a VM here and everything works fine, so really not sure why it's not working at your end.

@sebastian-raubach
Copy link
Member

If you are able to send your docker-compose.yml and your config.properties files (feel free to remove passwords) to [email protected] then maybe I can help you further.

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

No branches or pull requests

2 participants