Tower and Redis Databases
SQL Database#
The Database configuration differs depending on how you choose to deploy Tower:
- If you use the MySQL container provided in the deployment files, it will create a MySQL user and database for you.
- If you use an external database service, you must create a MySQL user and database manually.
Generate User and Schema#
The following section describes the SQL statements that must be executed to initialize the Tower database, if you decide to use an external database service.
MySQL#
1 2 3 4 5 |
|
MariaDB#
1 |
|
Environment Variables#
The following section describes how to configure the database environment variables in tower.env
.
Warning
As of Tower v22.2.0, new and pre-existing MySQL configurations must use a new driver. Please set TOWER_DB_DRIVER=org.mariadb.jdbc.Driver
.
All other MySQL-related TOWER_DB_*
values should still be used.
MySQL#
1 2 3 4 5 6 |
|
MariaDB#
1 2 3 4 5 6 |
|
Redis Database#
The Redis database can be configured in tower.env
as follows:
1 |
|