Docker Image #490
-
We're using this software in The Netherlands for a lot of meets. Is there a possibility to install this on a Docker image on our own server and host the database ourselves? |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
See https://hub.docker.com/r/owlcms/owlcms/tags For the database, you should not use the default which is to use a local H2 file located in ./database because you would lose on on container restart. You probably want to use a Postgres container with suitable external persistent storage, or a local Postgres install, and connect your container to that. The environment variables you would need to provide are listed in https://owlcms.github.io/owlcms4-prerelease/#/PostgreSQL |
Beta Was this translation helpful? Give feedback.
-
Wow! Totally missed that. Couple of questions:
I'm already planning on using this behind a reverse proxy/CloudFlare to only use the IP of the venue which we are using in The Netherlands (I'm involved since a couple of weeks with the WL federation here and we're already using this on Heroku. Since I have my own server I can do more with it and I have some reverse proxy experience). The system works great btw! We're using Bluetooth buttons that connect to an iPad to give good/no lift. Next step is using my MQTT server perhaps with some ESP32/Wemos devices. But I need to think about how to utilize that. Edit: I have it up and running now, filled in all environment variables, only to find out some of them I can edit from within OWLCMS 😂. For those of you interested in running this on something else than PostgreSQL, i.e. MariaDB, use the following variable: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Woops, mariadb/mySQL are not working... I'm back to PostgreSQL but this is the log I receive: Doesn't look like it's using PostgreSQL right? |
Beta Was this translation helpful? Give feedback.
-
Clearly not. There are two ways to get owlcms to use Postgres. One is to set the variable The other way is to NOT set Both should work (Heroku uses the first method, and under Kubernetes the owlcms container talks to the postgres container using the second method). |
Beta Was this translation helpful? Give feedback.
-
Obviously, the host name you provide in the url or in POSTGRES_HOST must be understood from inside the docker container where owlcms runs. Where/how are you running the container(s) ? I've only run the containers directly for debugging or within Kubernetes, so I'm not sure I can help you much more. |
Beta Was this translation helpful? Give feedback.
-
A successful owlcms start with postgres looks like the following...
|
Beta Was this translation helpful? Give feedback.
-
Never mind, I followed the env variables according to the Github.io page and put in Btw, I've got it up and running now, forwarded the public results to Great work you've put in here! This is what I'm getting now in my logs:
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to allow a backdoor IP in the form of a subdomain? I.e. |
Beta Was this translation helpful? Give feedback.
-
-D is the Java flag to Define an environment variable. |
Beta Was this translation helpful? Give feedback.
-
Short answer is no. |
Beta Was this translation helpful? Give feedback.
-
I will look into Authelia. Might enable something less crude. |
Beta Was this translation helpful? Give feedback.
Clearly not.
There are two ways to get owlcms to use Postgres.
One is to set the variable
JDBC_DATABASE_URL
to something that starts withjdbc:postgres
and setJDBC_DATABASE_USERNAME
andJDBC_DATABASE_PASSWORD
to the correct value. In this case the port number and host are in the URL.The other way is to NOT set
JDBC_DATABASE_URL
at all. Instead, use the five variablesPOSTGRES_HOST
POSTGRES_PORT
POSTGRES_DB
POSTGRES_USER
andPOSTGRES_PASSWORD
Both should work (Heroku uses the first method, and under Kubernetes the owlcms container talks to the postgres container using the second method).