Leantime docker-compose & environement file
docker-compose
version: '3.3'
services:
leantime:
image: leantime/leantime:latest
container_name: leantime
restart: unless-stopped
env_file: ./.env # Environment file with settings
volumes:
- /mnt/koa-01/leantime/public_userfiles:/var/www/html/public/userfiles # Volume to store public files, logo etc
- /mnt/koa-01/leantime/userfiles:/var/www/html/userfiles # Volume to store private user uploaded files
- /mnt/koa-01/leantime/config/custom.ini:/usr/local/etc/php/conf.d/custom.ini
# networks:
# - leantime-net
ports:
- "9090:80" # The port to expose and access Leantime
#networks:
# leantime-net:
Les dernières images sont disponibles sur le site officiel Docker Hub, accessibles via ce lien : Leantime
.env
This is a sample configuration file with all possible configuration options.
# If you don't want to maintain a file like this you can pass in all variables via Server Variables
## Minimum Configuration, these are required for installation
LEAN_PORT=80 # The port to expose and access Leantime
LEAN_APP_URL='' # Base URL, only needed for subfolder installation
LEAN_APP_DIR='' # Base of application without trailing slash (used for cookies), e.g, /leantime
LEAN_PORT='8081'
LEAN_DEBUG=0 # Debug flag
# Database - MySQL container
MYSQL_ROOT_PASSWORD='XXXXXXX' # Database password
MYSQL_DATABASE='XXXXXXXX' # Database name
MYSQL_USER='XXXXXXX' # Database username
MYSQL_PASSWORD='XXXXXXXX' # Database password
# Database - leantime container
LEAN_DB_HOST='192.168.100.5' # Database host
LEAN_DB_USER='XXXXXX' # Database username (needs to be the same as MYSQL_USER)
LEAN_DB_PASSWORD='XXXXXX' # Database password (needs to be the same as MYSQL_PASSWORD)
LEAN_DB_DATABASE='XXXXXX' # Database name (needs to be the same as MYSQL_DATABASE)
LEAN_DB_PORT='3306' # Database port
## Optional Configuration, you may omit these from your .env file
## Default Settings
LEAN_SITENAME='Leantime' # Name of your site, can be changed later
LEAN_LANGUAGE='fr-FR' # Default language
LEAN_DEFAULT_TIMEZONE='Europe/Paris' # Set default timezone
LEAN_ENABLE_MENU_TYPE=false # Enable to specifiy menu on a project by project basis
LEAN_SESSION_PASSWORD='XXXXXXXXXXXXXXXXXXXXXXX' #Salting sessions. Replace with a strong password
LEAN_SESSION_EXPIRATION=28800 # How many seconds after inactivity should we logout? 28800seconds = 8hours
LEAN_LOG_PATH=null # Default Log Path (including filename), if not set /logs/error.log will be used
## Look & Feel, these settings are available in the UI and can be overwritten there.
LEAN_LOGO_PATH='/images/logo.svg' # Default logo path, can be changed later
LEAN_PRINT_LOGO_URL='/images/logo.jpg' # Default logo URL use for printing (must be jpg or png format)
LEAN_DEFAULT_THEME='default' # Default theme
LEAN_PRIMARY_COLOR='#1b75bb' # Primary Theme color
LEAN_SECONDARY_COLOR='#81B1A8' # Secondary Theme Color
## Fileuploads
# Local File Uploads
LEAN_USER_FILE_PATH='userfiles/' # Local relative path to store uploaded files (if not using S3)
LEAN_DB_BACKUP_PATH='backupdb/' # Local relative path to store backup files, need permission to write