inital setup

This commit is contained in:
2023-06-13 15:18:59 +02:00
parent c464bdacdc
commit 86bdd7f10d
3 changed files with 46 additions and 0 deletions

15
.env.sample Normal file
View File

@@ -0,0 +1,15 @@
BASEDIR=
INTRANET=
TIMETAGGER_LOG_LEVEL=info
TIMETAGGER_BIND=0.0.0.0:80
TIMETAGGER_DATADIR=/root/_timetagger/
# create credentials: https://timetagger.app/cred
# replace all $ with $$
# or
# htpasswd -bnBC 8 "" testing | sed 's/\$/\$\$/g'
# sample: test : testing
TIMETAGGER_CREDENTIALS=test:$$2y$$08$$9xjUvAEMxTdvaVZ9VvzCGO2V1I2h39gOvsZrT.BHJj73eghjhtYDq
# hint: docker up with new credentials create a additional new user

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.env
files/

29
docker-compose.yml Normal file
View File

@@ -0,0 +1,29 @@
# https://docs.docker.com/compose/compose-file/compose-file-v3/
# https://timetagger.app/articles/selfhost2/
---
version: "3.9"
services:
timetagger:
image: ghcr.io/almarklein/timetagger
container_name: timetagger
env_file:
- .env
restart: unless-stopped
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
update_config:
parallelism: 1
delay: 10s
ports:
- 80:80
volumes:
- ${BASEDIR:-.}/files/:${TIMETAGGER_DATADIR}
# networks:
# - backend
# networks:
# backend:
# name: ${INTRANET:-backend}
# external: true