Skip to content

Commit 6cf647f

Browse files
authored
Merge pull request #5155 from UrsKroell:feature/service-wakapi
Adds service template Wakapi
2 parents 3634d7d + cd51b94 commit 6cf647f

File tree

2 files changed

+210
-0
lines changed

2 files changed

+210
-0
lines changed

public/svgs/wakapi.svg

+150
Loading

templates/compose/wakapi.yaml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# documentation: https://wakapi.dev/
2+
# slogan: A minimalist, self-hosted WakaTime-compatible backend for coding statistics
3+
# tags: productivity, self-hosted, developer-tools, time-tracker, wakatime, wakatime-api, coding-statistics, statistics, timetracking, analytics
4+
# logo: svgs/wakapi.svg
5+
# port: 3000
6+
7+
services:
8+
wakapi:
9+
image: ghcr.io/muety/wakapi:latest
10+
environment:
11+
- SERVICE_FQDN_WAKAPI_3000
12+
- TZ=${TIMEZONE:-Europe/Berlin}
13+
14+
- WAKAPI_SERVER_LISTEN_IPV6="-"
15+
- WAKAPI_ENV=${WAKAPI_ENVIRONMENT:-production}
16+
- WAKAPI_SECURITY_PASSWORD_SALT=${SERVICE_BASE64_64_PASSWORDSALT}
17+
- WAKAPI_SECURITY_EXPOSE_METRICS=${WAKAPI_SECURITY_EXPOSE_METRICS:-false}
18+
19+
# Database configuration
20+
- WAKAPI_DB_TYPE=postgres
21+
- WAKAPI_DB_NAME=${WAKAPI_DB_NAME:-wakapi}
22+
- WAKAPI_DB_USER=${SERVICE_USER_DATABASE}
23+
- WAKAPI_DB_PASSWORD=${SERVICE_PASSWORD_DATABASE}
24+
- WAKAPI_DB_HOST=${WAKAPI_DB_HOST:-postgres}
25+
- WAKAPI_DB_PORT=${WAKAPI_DB_PORT:-5432}
26+
27+
# SMTP configuration
28+
- WAKAPI_MAIL_ENABLED=${WAKAPI_MAIL_ENABLED:-false}
29+
- WAKAPI_MAIL_PROVIDER=smtp #only smtp supported
30+
- WAKAPI_MAIL_SENDER=${WAKAPI_MAIL_SENDER}
31+
- WAKAPI_MAIL_SMTP_HOST=${WAKAPI_MAIL_SMTP_HOST}
32+
- WAKAPI_MAIL_SMTP_PORT=${WAKAPI_MAIL_SMTP_PORT:-587}
33+
- WAKAPI_MAIL_SMTP_USERNAME=${WAKAPI_MAIL_SMTP_USERNAME}
34+
- WAKAPI_MAIL_SMTP_PASSWORD=${WAKAPI_MAIL_SMTP_PASSWORD}
35+
36+
volumes:
37+
- wakapi-data:/data
38+
depends_on:
39+
postgres:
40+
condition: service_healthy
41+
healthcheck:
42+
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/"]
43+
interval: 2s
44+
timeout: 10s
45+
retries: 15
46+
47+
postgres:
48+
image: postgres:16-alpine
49+
volumes:
50+
- wakapi-postgres-data:/var/lib/postgresql/data
51+
environment:
52+
- POSTGRES_USER=${SERVICE_USER_DATABASE}
53+
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_DATABASE}
54+
- POSTGRES_DB=${WAKAPI_DB_NAME:-wakapi}
55+
- POSTGRES_PORT=${WAKAPI_DB_PORT:-5432}
56+
healthcheck:
57+
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
58+
interval: 5s
59+
timeout: 20s
60+
retries: 10

0 commit comments

Comments
 (0)