Skip to content

Environment Variables

Dilan Gilluly edited this page Sep 14, 2024 · 3 revisions

I plan on publishing on Docker soon. For setting up via Docker commandline or docker-compose, I figured I'd include a gist of the Environment Variables TAM's server will recognize.

DB_TYPE

Expected Values:

  • "LOCAL" - Uses a SQLite database in /tam/server/data.db of the image. You don't need to put any more Environment Variables in if you specify this type (it is the default). If you want data to be persistent then put a -v ./data.db:/tam/server/data.db to keep it in the same folder as your docker-compose file.
  • "MYSQL" - Uses MariaDB or MySQL (the mysql.connector it imports can use either or)

MYSQL_HOST

Specifies the hostname or IP of the DB in relation to the docker container (if you include the MariaDB instance within the same compose stack, you should be able to use the service name, otherwise it would be the IP or hostname.

MYSQL_PORT

(Optional) Defaults to the normal 3306 MySQL/MariaDB uses by default. You can use it to change it if you change it from the default on the server.

MYSQL_USER

Username of the user with all permissions to an initially empty database, to create it.

MYSQL_PASSWORD

Password of said user above.

MYSQL_DB

Name of the database.

Clone this wiki locally