Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (58 loc) · 2.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (58 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# TaskCraft + PostgreSQL. Start with: docker compose up -d → http://localhost:8788
services:
db:
image: postgres:17-alpine
# Docker's default of 64 MB is tight for parallel queries over large projects
shm_size: 256mb
environment:
POSTGRES_USER: taskcraft
POSTGRES_PASSWORD: ${TASKCRAFT_DB_PASSWORD:-change-me}
POSTGRES_DB: taskcraft
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U taskcraft"]
interval: 5s
retries: 10
restart: unless-stopped
taskcraft:
# SAML single sign-on needs a build with it: docker compose build --build-arg FEATURES=saml
build: .
image: taskcraft:latest
depends_on:
db:
condition: service_healthy
environment:
TASKCRAFT_DATABASE_URL: postgres://taskcraft:${TASKCRAFT_DB_PASSWORD:-change-me}@db:5432/taskcraft
TASKCRAFT_BASE_URL: ${TASKCRAFT_BASE_URL:-http://localhost:8788}
# behind HTTPS (reverse proxy) set this to true
TASKCRAFT_SECURE_COOKIES: ${TASKCRAFT_SECURE_COOKIES:-false}
# documentation next to the work (optional)
# TASKCRAFT_WIKICRAFT_URL: https://wiki.example.com
# TASKCRAFT_WIKICRAFT_TOKEN: wct_...
# single sign-on (optional, see README "Sign-in"); redirect URIs: <base URL>/api/auth/sso/<id>/callback
# TASKCRAFT_GOOGLE_CLIENT_ID: ....apps.googleusercontent.com
# TASKCRAFT_GOOGLE_CLIENT_SECRET: ...
# TASKCRAFT_GOOGLE_ALLOWED_DOMAINS: example.com
# TASKCRAFT_MICROSOFT_CLIENT_ID: ...
# TASKCRAFT_MICROSOFT_CLIENT_SECRET: ...
# TASKCRAFT_MICROSOFT_TENANT: <directory (tenant) id>
# TASKCRAFT_OIDC_ISSUER: https://sso.example.com/realms/acme
# TASKCRAFT_OIDC_CLIENT_ID: taskcraft
# TASKCRAFT_OIDC_CLIENT_SECRET: ...
# TASKCRAFT_OIDC_NAME: Acme SSO
# any number of providers (OIDC, GitHub, LDAP / Active Directory, SAML) as JSON:
# TASKCRAFT_AUTH_PROVIDERS: >-
# [{"type": "ldap", "id": "ad", "name": "ACME directory", "url": "ldaps://dc1.example.com",
# "bindDn": "CN=taskcraft,OU=Service,DC=example,DC=com", "bindPassword": "...",
# "baseDn": "DC=example,DC=com", "syncGroups": true}]
# sign in through the providers only
# TASKCRAFT_DISABLE_PASSWORD_LOGIN: "true"
ports:
- "8788:8788"
volumes:
- data:/data
restart: unless-stopped
volumes:
db:
data: