Compare commits

..

4 Commits

Author SHA1 Message Date
rama
a371f7abd7 Merge pull request 'changed version' (#2) from testing into main
Reviewed-on: #2
2023-12-05 11:45:01 +01:00
Raphael Martin
2e88cbd526 changed version 2023-12-05 11:41:46 +01:00
rama
f3e82d4753 Merge pull request 'changed data store to .env variable' (#1) from testing into main
Reviewed-on: #1
2023-11-27 12:40:46 +01:00
Raphael Martin
c706667bb1 changed data store to .env variable 2023-11-27 12:40:15 +01:00
3 changed files with 7 additions and 4 deletions

View File

@@ -18,4 +18,6 @@ sample .env:
# the traefik network you want to use
TRAEFIK_NETWORK=traefik_net
PROJECT_DATA=./data
then execute the first time the init script

View File

@@ -1,4 +1,4 @@
version: "1"
version: "3.8"
networks:
default:
@@ -19,8 +19,8 @@ services:
- "GOTIFY_DATABASE_DIALECT=sqlite3"
- "GOTIFY_DATABASE_CONNECTION=db/gotify.db"
volumes:
- "./data/gotify:/app/data"
- "./data/db:/app/db"
- "${PROJECT_DATA}/${PROJECT_NAME}-gotify/gotify:/app/data"
- "${PROJECT_DATA}/${PROJECT_NAME}-gotify/db:/app/db"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
labels:

3
init
View File

@@ -2,7 +2,8 @@
source ./.env
mkdir data
mkdir -p ${PROJECT_DATA}/${PROJECT_NAME}-gotify/gotify
mkdir -p ${PROJECT_DATA}/${PROJECT_NAME}-gotify/db
docker network create $TRAEFIK_NETWORK