Skip to content

Environment Variables

Dilan Gilluly edited this page Mar 28, 2025 · 3 revisions

The latest docker image is published on Docker Hub. The create server script, along with the other files in the docker-compose folder, will automatically set it up, pull the docker image(s), and run the server; after asking just a few questions/prompts from you.

API_PW

Sets a password for API generation (in settings window) and enables secure mode (API key is required to see anything or make any changes).

SS_MODE

Setting SS_MODE to "on" turns on Super Secure mode, which pairs API keys with IP addresses to keep them from being repurposed by malicious actors.

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.
  • "MARIADB" - Uses MariaDB or MySQL (the mysql.connector it imports can use either or)

MARIADB_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).

MARIADB_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.

MARIADB_USER

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

MARIADB_PASSWORD

Password of said user above.

MARIADB_DATABASE

Name of the database.

Clone this wiki locally