git clone https://github.com/Leantime/docker-leantime.git cd docker-leantime nano docker-compose.yml
version: '3.3' services: leantime_db: image: mysql:8.0 container_name: mysql_leantime volumes: # - db_data:/var/lib/mysql - ~/docker/containers/leantime/dbdata:/var/www/html/public/userfileslib/mysql restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: 'tQY8!Xa@F7m@sHX%!hGG84$t' MYSQL_DATABASE: 'leantimeDB817' MYSQL_USER: 'lean' MYSQL_PASSWORD: 'X%!hGtQY8!Xa@FG84$t7m@sH' command: --character-set-server=utf8 --collation-server=utf8_unicode_ci leantime: image: leantime/leantime:latest container_name: leantime restart: unless-stopped environment: # LEAN_APP_URL: 'https://domain.com/leantime' # Only needed for subdirectory setup; protocol (http or https) and base URL , trailing slash not needed LEAN_SITENAME: 'Projects - DonFerris.me' # Name of your site, can be changed later LEAN_DB_HOST: 'mysql_leantime' # Database host, derived from container_name in leantime_db container LEAN_DB_USER: 'lean' LEAN_DB_PASSWORD: 'X%!hGtQY8!Xa@FG84$t7m@sH' LEAN_DB_DATABASE: 'leantimeDB817' LEAN_DEFAULT_TIMEZONE: 'America/Los_Angeles' # Set default server timezone LEAN_SESSION_PASSWORD: 'G7AqM9zAemXkPF7g3m3gTeD8F9o3GPy86TTfX' # Salting sessions. Replace with a strong password LEAN_SESSION_EXPIRATION: 28800 # How many seconds after inactivity should we logout? 28800seconds = 8hours volumes: - ./userfiles:/var/www/html/public/userfiles - ./public_userfiles:/var/www/html/public/userfiles ports: - "25326:80" # The port to expose and access Leantime depends_on: - leantime_db # Don't start Leantime unless leantime_db is running
docker-compose up -d