A comprehensive guide for installing, configuring, and running LeaderOS on your Docker server for production use.
.env
: The environment file for configuring the LeaderOS setup.Caddyfile
: Contains the reverse proxy configuration for Caddy.nginx
: Contains the Nginx configuration files.leaderos
: Contains the LeaderOS software files.docker-compose.yml
: The main Docker Compose file for setting up the LeaderOS environment.My Account > Licenses
..zip
file..zip
file to your server./leaderos
directory.leaderos
directory:
chown -R www-data:www-data /home/myuser/leaderos-docker/leaderos
.env
File.env
file according to your setup.
.env
file.
mariadb
in the Database Settings step, which is the name of the MySQL container in the Docker environment.sudo
.
File Permissions: not_writeable
:
If you encounter this error during the LeaderOS setup wizard, you need to adjust the permissions of the leaderos
directory:
chown -R www-data:www-data /home/myuser/leaderos-docker/leaderos
SQLSTATE[HY000] [2002] No such file or directory
:
If LeaderOS fails to connect to the database, you need to set the database host to mariadb
in the Database Settings step.
Docker uses internal networking, so referring to the database service by its container name (mariadb
) is required.
Caddyfile
: