AYON Docker Configuration Options
Last updated 4 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.
HTTP Server Settings
Directory Paths
Authentication Settings
Database and Session Management
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
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:
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.