-
You may pass below environments to use an external database:
Env Example hibernate_dialect org.hibernate.dialect.MySQL5InnoDBDialect hibernate_connection_driver_class com.mysql.cj.jdbc.Driver hibernate_connection_url jdbc:mysql://mysql:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false hibernate_connection_username root hibernate_connection_password password -
For example value of different database types, please check
conf/hibernate.properties -
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee |
Issue Votes (0)
Docker seems like the most optimal option allowing for a fast deployment and easy upgrade and it is our preferred way to run services. In the documentation there is no mention on how to connect external database when running from a Docker container. Can the external database be configured through system environment variables? If not, what would be the best way to setup OneDev under Docker with external database? I mean in such a way that future upgrades would require just pulling a new image and running it in place of the old onw