changed data store to .env variable #1

Merged
rama merged 1 commits from testing into main 2023-11-27 12:40:47 +01:00
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