Tower and Redis Databases
Database configuration#
SQL Database#
The Database configuration differs based on your Tower deployment:
- 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#
If you choose to use an external database service, execute the SQL statements below to initialize the Tower database.
MySQL#
1 2 3 4 5 |
|
MariaDB#
1 |
|
Tower configuration#
Use environment variables (tower.env
file) for database configuration in Tower.
Warning
As of Tower v22.2.0, new and pre-existing MySQL configurations must use a new driver. Set TOWER_DB_DRIVER=org.mariadb.jdbc.Driver
(in tower.env
) or driverClassName:org.mariadb.jdbc.Driver
(in tower.yml
). All other MySQL-related TOWER_DB_*
values should still be used.
MySQL#
tower.env
1 2 3 4 5 6 |
|
MariaDB#
tower.env
1 2 3 4 5 6 |
|
Redis Database#
Note
As of Tower version 22.3, we officially support Redis version 6. Follow your cloud provider specifications to upgrade your instance.
tower.env
1 2 |
|