AYON Docker Configuration Options
Last updated 3 months ago
Overview
AYON Docker supports different configuration options to control how your AYON server runs. These Configuration parameters can be set through environment variables.
Once you modify your docker-compose.yml file or add new environment variables to your .env file, you must rebuild your Docker containers as explained in How to Update Your AYON Server article.
Setting Docker Configuration Options
There are two methods for setting environment variables for your AYON instance:
Recommended: Create a
.envfile in theayon-dockerdirectory and add your variables there.ExampleAYON_STACK_SERVER_TAG=dev AYON_STACK_SERVER_PORT=5001 AYON_AUTH_PASS_MIN_LENGTH=12Alternatively: Add an
environmentsection underserverin yourdocker-compose.ymlfile.
Available Docker Configurations Options
You can find the full list of available settings in the ayonconfig.py file within the backend repository here. To get the corresponding environment variable, simply uppercase the setting name and add the AYON_ prefix.
AYON Stack Settings
AYON Stack environment variables only work when added to the .env file.
Environment Variable | Default Value | Description |
|
| This specifies the AYON server version.
You will need to rebuild your Docker container to sync with any pushed updates, as detailed in the How to Update Your AYON Server article. |
|
| The AYON server port. |
HTTP Server Settingsβ
Environment Variable | Default Value | Description |
|
| The address the API server will listen on. |
|
| The port the API server will listen on. |
Directory Pathsβ
Environment Variable | Default Value | Description |
|
| Path to the directory containing the API modules. |
|
| Absolute path to the directory containing the addons. |
|
| Path to the directory containing the frontend files. The frontend must be built; cloning the frontend will not work. |
Authentication Settingsβ
Environment Variable | Default Value | Description |
|
| A secret string used to salt the password hash. |
|
| The minimum required password length. |
|
| Enforces the use of a complex password. |
Database and Session Managementβ
Environment Variable | Default Value | Description |
|
| The connection string for Redis. |
|
| The Redis channel name for system messages. |
|
| The connection string for Postgres. |
|
| The session lifetime in seconds. |
Example database environment variables:
AYON_REDIS_URL=redis://user:password123@redis.example.com:6379
AYON_POSTGRES_URL=postgres://user:password123@postgres.example.com:5432/ayonSecurity and Loggingβ
Environment Variable | Default Value | Description |
|
| It sets the log level for the server console output. |
|
| The maximum number of failed login attempts before an IP address is banned. |
|
| The time in seconds to ban an IP address after too many failed login attempts. |
|
| The "Message of the Day" that appears on the login page (e.g., |
|
| The path to a file containing the "Message of the Day." |
Message of the Day: The name, originating in the 1970s, refers to the message displayed to users on the login page. It's simply a more traditional name for the Login Page Message.
Setup SMTP in AYON Docker
The AYON server can be configured to send emails for things like password recovery.
If you have an active Ynput cloud subscription, emails are sent using Ynput servers, so no configuration is needed.
For self-hosted instances, you'll need a working SMTP server to enable sending emails. You can configure it using these environment variables in the server container:
Environment Variable | Description | Example Value |
| The sender's email address. |
|
| The SMTP server hostname. |
|
| The SMTP server port. |
|
| Enables SSL for the SMTP connection. |
|
| The SMTP server username. |
|
| The SMTP server password. |
|
Once the SMTP environment variables are properly set and the server is restarted, a "Reset password" link will appear on the login page. You can use this link to test that emails are being sent correctly. Don't worry, your password won't be reset unless you follow the link in the email to change it.
FAQ
Where can I look for the ayon-docker tags/releases?
You can find a list of all released Docker versions on our Docker Hub under AYON Docker Tags.