From a92e6b04b799e25bcc6d1309e092e84e8678b991 Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Wed, 1 May 2024 00:22:23 +0300 Subject: [PATCH] Fix timezone issue in reference compose.yml --- .gitignore | 7 ++++--- README.md | 15 ++------------- TODO.md | 1 + compose.yml | 13 +++++++++++++ 4 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 compose.yml diff --git a/.gitignore b/.gitignore index 04e94c5..124cb1f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,11 +17,12 @@ # Go workspace file go.work +# GoLand files +.idea/ + # Executable hibiscus-txt -.idea/ - -# Because currently it's used in "prod" +# Testing data data/ config/log.txt \ No newline at end of file diff --git a/README.md b/README.md index 796a2e8..6bc55a3 100644 --- a/README.md +++ b/README.md @@ -58,19 +58,8 @@ tg_chat=chatid ### Docker deployment: Due to project's simplicity ~~and me rarely using them~~ there are no image tags, I just use `latest` and push to it. The [package](https://git.a71.su/Andrew71/hibiscus/packages) provided in this repository is for `linux/amd64` architecture, -and there is a [Dockerfile](./Dockerfile) in case you want to compile for something rarer (like a Pi). Below is `compose.yml` that I personally use: -```yaml -version: "3.8" -services: - hibiscus: - image: git.a71.su/andrew71/hibiscus:latest - restart: unless-stopped - ports: - - "7101:7101" - volumes: - - path-to-config-dir/config:/config - - path-to-data-dir/data:/data -``` +and there is a [Dockerfile](./Dockerfile) in case you want to compile for something rarer (like a Pi). +This repo contains the [compose.yml](./compose.yml) that I personally use. ### Executable flags If you for some reason decide to run plain executable instead of docker, it supports following flags: diff --git a/TODO.md b/TODO.md index a628b74..02ce6ce 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,7 @@ # TODO List of things to add to this project +* Fix the weird issue with compose and mounts (absolute path something) when updating!!! * Better docs in case others want to use ths for some reason * Github/Codeberg/whatever mirror for when `faye` (my server) is offline * Improve config and use reflection when loading it diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..31b25b3 --- /dev/null +++ b/compose.yml @@ -0,0 +1,13 @@ +version: "3.8" +services: + hibiscus: + image: git.a71.su/andrew71/hibiscus:latest + container_name: hibiscus + restart: unless-stopped + ports: + - "7101:7101" + volumes: + - ./path-to-config:/config + - ./path-to-data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro \ No newline at end of file