From 5e9f331d511a486ae372cfa46fa695cbf2357c17 Mon Sep 17 00:00:00 2001 From: technorabilia Date: Sun, 21 May 2023 00:57:03 +0000 Subject: [PATCH] Workflow update --- lsio/hishtory-server/docker-compose.yaml | 24 ++++++++++++++++++++++++ lsio/hishtory-server/docker-run.sh | 15 +++++++++++++++ lsio/hishtory-server/run-once.sh | 2 ++ 3 files changed, 41 insertions(+) create mode 100644 lsio/hishtory-server/docker-compose.yaml create mode 100644 lsio/hishtory-server/docker-run.sh create mode 100644 lsio/hishtory-server/run-once.sh diff --git a/lsio/hishtory-server/docker-compose.yaml b/lsio/hishtory-server/docker-compose.yaml new file mode 100644 index 0000000..61d7ba9 --- /dev/null +++ b/lsio/hishtory-server/docker-compose.yaml @@ -0,0 +1,24 @@ +# [hiSHtory](https://github.com/ddworken/hishtory) is a better shell history. It +# stores your shell history in context (what directory you ran the command in, +# whether it succeeded or failed, how long it took, etc). This is all stored +# locally and end-to-end encrypted for syncing to to all your other computers. + +--- +version: "2.1" +services: + hishtory-server: + image: ghcr.io/linuxserver/hishtory-server + container_name: hishtory-server + 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} + # Postgres DB [Connection URI](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING). Special characters must be [URL encoded](https://en.wikipedia.org/wiki/URL_encoding). + - HISHTORY_POSTGRES_DB=postgresql://${HISHTORY_DB_USER}:${HISHTORY_DB_PASS}@hishtory-db:5432/hishtory?sslmode=disable + ports: + # API port + - 8080:8080 + restart: unless-stopped diff --git a/lsio/hishtory-server/docker-run.sh b/lsio/hishtory-server/docker-run.sh new file mode 100644 index 0000000..b07ac8c --- /dev/null +++ b/lsio/hishtory-server/docker-run.sh @@ -0,0 +1,15 @@ +# [hiSHtory](https://github.com/ddworken/hishtory) is a better shell history. It +# stores your shell history in context (what directory you ran the command in, +# whether it succeeded or failed, how long it took, etc). This is all stored +# locally and end-to-end encrypted for syncing to to all your other computers. + +. ./.env +docker run -d \ + --name=hishtory-server \ + -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 HISHTORY_POSTGRES_DB=postgresql://${HISHTORY_DB_USER}:${HISHTORY_DB_PASS}@hishtory-db:5432/hishtory?sslmode=disable `# Postgres DB [Connection URI](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING). Special characters must be [URL encoded](https://en.wikipedia.org/wiki/URL_encoding).` \ + -p 8080:8080 `# API port` \ + --restart unless-stopped \ + ghcr.io/linuxserver/hishtory-server diff --git a/lsio/hishtory-server/run-once.sh b/lsio/hishtory-server/run-once.sh new file mode 100644 index 0000000..8aeac9a --- /dev/null +++ b/lsio/hishtory-server/run-once.sh @@ -0,0 +1,2 @@ +ln -s ../docker-env.cfg ./.env +. ./.env