From 6d0da0fb122f85db466766752daba697f2ac32df Mon Sep 17 00:00:00 2001 From: technorabilia Date: Fri, 11 Aug 2023 00:42:49 +0000 Subject: [PATCH] Workflow update --- lsio/bookstack/docker-run.sh | 2 +- lsio/kimai/docker-compose.yaml | 37 ++++++++++++++++++++++++++++++++++ lsio/kimai/docker-run.sh | 25 +++++++++++++++++++++++ lsio/kimai/run-once.sh | 3 +++ 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 lsio/kimai/docker-compose.yaml create mode 100644 lsio/kimai/docker-run.sh create mode 100644 lsio/kimai/run-once.sh diff --git a/lsio/bookstack/docker-run.sh b/lsio/bookstack/docker-run.sh index 0263e28..9ecaeb8 100644 --- a/lsio/bookstack/docker-run.sh +++ b/lsio/bookstack/docker-run.sh @@ -16,7 +16,7 @@ docker run -d \ -e DB_HOST= `# for specifying the database host` \ -e DB_PORT= `# for specifying the database port if not default 3306` \ -e DB_USER= `# for specifying the database user` \ - -e DB_PASS= `# for specifying the database password (non-alphanumeric passwords must be properly escaped.)` \ + -e DB_PASS= `# for specifying the database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.)` \ -e DB_DATABASE=bookstackapp `# for specifying the database to be used` \ -p 6875:80 `# will map the container's port 80 to port 6875 on the host` \ -v ${BASEDIR:-/volume1/docker}/bookstack/config:/config `# this will store any uploaded data on the docker host` \ diff --git a/lsio/kimai/docker-compose.yaml b/lsio/kimai/docker-compose.yaml new file mode 100644 index 0000000..08cc8f6 --- /dev/null +++ b/lsio/kimai/docker-compose.yaml @@ -0,0 +1,37 @@ +# [Kimai](https://kimai.org/) is a professional grade time-tracking application, +# free and open-source. It handles use-cases of freelancers as well as companies +# with dozens or hundreds of users. Kimai was build to track your project times +# and ships with many advanced features, including but not limited to: JSON API, +# invoicing, data exports, multi-timer and punch-in punch-out mode, tagging, +# multi-user - multi-timezones - multi-language ([over 30 translations +# existing](https://hosted.weblate.org/projects/kimai/)!), authentication via +# SAML/LDAP/Database, two-factor authentication (2FA) with TOTP, customizable +# role and team permissions, responsive design, user/customer/project specific +# rates, advanced search & filtering, money and time budgets, advanced +# reporting, support for [plugins](https://www.kimai.org/store/) and so much +# more. + +--- +version: "2.1" +services: + kimai: + image: ghcr.io/linuxserver/kimai + container_name: kimai + environment: + # for UserID + - PUID=${PUID:-1024} + # for GroupID + - PGID=${PGID:-100} + # specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). + - TZ=${TZ:-Europe/Amsterdam} + # Configure your database connection + - DATABASE_URL=mysql://your_db_user:your_db_pass@your_db_host:3306/your_db_name + volumes: + # Configuration files. + - ${BASEDIR:-/volume1/docker}/kimai/config:/config + ports: + # http gui + - 80:80 + # https gui + - 443:443 + restart: unless-stopped diff --git a/lsio/kimai/docker-run.sh b/lsio/kimai/docker-run.sh new file mode 100644 index 0000000..3406cb0 --- /dev/null +++ b/lsio/kimai/docker-run.sh @@ -0,0 +1,25 @@ +# [Kimai](https://kimai.org/) is a professional grade time-tracking application, +# free and open-source. It handles use-cases of freelancers as well as companies +# with dozens or hundreds of users. Kimai was build to track your project times +# and ships with many advanced features, including but not limited to: JSON API, +# invoicing, data exports, multi-timer and punch-in punch-out mode, tagging, +# multi-user - multi-timezones - multi-language ([over 30 translations +# existing](https://hosted.weblate.org/projects/kimai/)!), authentication via +# SAML/LDAP/Database, two-factor authentication (2FA) with TOTP, customizable +# role and team permissions, responsive design, user/customer/project specific +# rates, advanced search & filtering, money and time budgets, advanced +# reporting, support for [plugins](https://www.kimai.org/store/) and so much +# more. + +. ./.env +docker run -d \ + --name=kimai \ + -e PUID=${PUID:-1024} `# for UserID` \ + -e PGID=${PGID:-100} `# for GroupID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \ + -e DATABASE_URL=mysql://your_db_user:your_db_pass@your_db_host:3306/your_db_name `# Configure your database connection` \ + -p 80:80 `# http gui` \ + -p 443:443 `# https gui` \ + -v ${BASEDIR:-/volume1/docker}/kimai/config:/config `# Configuration files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/kimai diff --git a/lsio/kimai/run-once.sh b/lsio/kimai/run-once.sh new file mode 100644 index 0000000..c2c6c03 --- /dev/null +++ b/lsio/kimai/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/kimai/config