inital setup
This commit is contained in:
15
.env.sample
Normal file
15
.env.sample
Normal 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
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.env
|
||||
files/
|
||||
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user