Merge pull request 'changed data store to .env variable' (#1) from testing into main

Reviewed-on: #1
This commit is contained in:
rama 2023-11-27 12:40:46 +01:00
commit f3e82d4753
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

3
init
View File

@ -2,7 +2,8 @@
source ./.env 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 docker network create $TRAEFIK_NETWORK