tiredofit / docker-leantime

Dockerized Project Managment tool with many configurable options
MIT License
16 stars 4 forks source link

issue on installing? #7

Open killmasta93 opened 2 years ago

killmasta93 commented 2 years ago

Hi Currently was trying to use the docker compose example to try the image but im getting

Notice: Undefined property: leantime\core\config::$defaultTimezone in /www/html/public/index.php on line 12

version: '2'

services:

  leantime-app:
    image: tiredofit/leantime
    container_name: leantime-app
    links:
    - leantime-db
    volumes:
    ### If you want to perform customizations to the source and have access to it, then uncomment this line - This includes modules
    #- ./data:/www/html
    ### Or, if you just want to use Stock leantime and hold onto persistent files like cache and session use this, one or the other.
    - ./data:/data
    - ./logs/:/www/logs
    environment:
    - VIRTUAL_HOST=leantime.example.com
    - VIRTUAL_NETWORK=nginx-proxy
    - VIRTUAL_PORT=80
    - LETSENCRYPT_HOST=leantime.example.com
    - LETSENCRYPT_EMAIL=admin@example.com

    - CONTAINER_NAME=leantime-app

    - DB_HOST=leantime-db
    - DB_NAME=leantime
    - DB_USER=leantime
    - DB_PASS=leantime

    - SITE_URL=https://project.mydomain.com
    - SITE_NAME=Leantime
    - ADMIN_EMAIL=admin@example.com
    - ADMIN_PASS=admin
    - ADMIN_FIRST_NAME=Leantime
    - ADMIN_LAST_NAME=Administrator
    - COMPANY_NAME=Example Company

    - TIMEZONE=America/Vancouver

    networks:
      - proxy-tier
    restart: always

  leantime-db:
    image: tiredofit/mariadb
    container_name: leantime-db
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - ROOT_PASS=password
      - DB_NAME=leantime
      - DB_USER=leantime
      - DB_PASS=leantime

      - CONTAINER_NAME=leantime-db
    networks:
      - proxy-tier
    restart: always

  leantime-db-backup:
    container_name: leantime-db-backup
    image: tiredofit/db-backup
    links:
     - leantime-db
    volumes:
      - ./dbbackup:/backup
    environment:
      - CONTAINER_NAME=leantime-db-backup
      - DB_HOST=leantime-db
      - DB_TYPE=mariadb
      - DB_NAME=leantime
      - DB_USER=leantime
      - DB_PASS=leantime
      - DB_DUMP_FREQ=1440
      - DB_DUMP_BEGIN=0000
      - DB_CLEANUP_TIME=8640
      - COMPRESSION=BZ
      - MD5=TRUE
    networks:
      - proxy-tier
    restart: always

networks:
  proxy-tier:
    external:
      name: nginx-proxy

thank you

Morne04-Personal commented 1 year ago

Getting the same issue as @killmasta93, however not using the example compose, using the image and setting up with env variables.

For the life of me can't figure this out. Here is output of container after it starts:



Installation

This script will set up your database and create an administrator account


Login Info




User Info




Githubissues.
  • Githubissues is a development platform for aggregating issues.