initial commit. Cloned timetracker repository

This commit is contained in:
Daniel Goc
2026-03-10 09:02:57 +01:00
commit f2952bcef0
189 changed files with 21334 additions and 0 deletions

85
Taskfile.yml Normal file
View File

@@ -0,0 +1,85 @@
version: "3"
dotenv: [".env"]
vars:
PROJECT: timetracker
BUILD_DIR: ./bin
REMOTE_USER: root
REMOTE_HOST: 192.168.220.30
EMAIL_SMTP_PORT: 1025
EMAIL_SMTP_HOST: localhost
GITEA_SERVICE: gitea_postgres_db
GITEA_DB: gitea
GITEA_USER: gitea
DUMP_FILE_NAME:
sh: echo gitea_$(date +%Y_%m_%d__%H_%M_%S).sql
GITEA_REMOTE_SERVICE: "gitea_postgres_db"
GITEA_REMOTE_DB_NAME: "gitea"
GITEA_REMOTE_DB_USER: "gitea"
GITEA_REMOTE_DB_PASS: "gitea"
DOCKER_CONFIG: |
services:
{{.DB_SERVICE_NAME}}:
image: postgres:alpine
container_name: {{.DB_SERVICE_NAME}}
environment:
POSTGRES_USER: {{.DB_USER}}
POSTGRES_PASSWORD: {{.DB_PASSWORD}}
POSTGRES_DB: {{.DB_NAME}}
ports:
- "{{.DB_PORT}}:{{.DB_PORT}}"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
pdf:
image: registry.ma-al.com/print-rs:latest
command: start_server
ports:
- "8000:8000"
restart: always
cap_add:
- SYS_ADMIN
environment:
- TZ=CET-1CES
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- mailpit_data:/data/tests
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/tests/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: true
MP_SMTP_AUTH_ALLOW_INSECURE: true
MP_ENABLE_SPAMASSASSIN: postmark
MP_VERBOSE: true
volumes:
postgres_data:
mailpit_data:
includes:
docker: ./taskfiles/docker.yml
dev: ./taskfiles/dev.yml
build: ./taskfiles/build.yml
db: ./taskfiles/db.yml
gitea: ./taskfiles/gitea.yml
i18n: ./taskfiles/i18n.yml
tpl: ./taskfiles/templates.yml
tasks:
default:
desc: List all available tasks
cmds:
- task --list