73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
version: "2.3"
|
|
|
|
services:
|
|
api:
|
|
image: vikunja/api:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
- VIKUNJA_DATABASE_HOST=db
|
|
- VIKUNJA_DATABASE_PASSWORD=vikunja
|
|
- VIKUNJA_DATABASE_TYPE=postgres
|
|
- VIKUNJA_DATABASE_USER=vikunja
|
|
- VIKUNJA_DATABASE_DATABASE=vikunja
|
|
- VIKUNJA_SERVICE_FRONTENDURL=https://tasks.jakehoward.tech
|
|
- VIKUNJA_SERVICE_JWTSECRET="{{ vault_jwt_secret }}"
|
|
- VIKUNJA_SERVICE_ENABLEREGISTRATION=false
|
|
- VIKUNJA_SERVICE_TIMEZONE={{ timezone }}
|
|
- VIKUNJA_REDIS_HOST=redis:6379
|
|
- VIKUNJA_REDIS_ENABLED=true
|
|
- VIKUNJA_LOG_PATH=/dev/stdout
|
|
- VIKUNJA_KEYVALUE_TYPE=redis
|
|
- VIKUNJA_MAILER_ENABLED=true
|
|
- VIKUNJA_MAIL_FROMEMAIL={{ vault_from_email }}
|
|
- VIKUNJA_MAILER_USERNAME={{ vault_smtp_username }}
|
|
- VIKUNJA_MAILER_PASSWORD={{ vault_smtp_password }}
|
|
- VIKUNJA_MAILER_HOST=smtp.eu.mailgun.org
|
|
- TZ={{ timezone }}
|
|
- PUID={{ docker_user.id }}
|
|
- PGID={{ docker_user.id }}
|
|
labels:
|
|
- traefik.enable=true
|
|
# yamllint disable-line rule:line-length
|
|
- traefik.http.routers.vikunja-api.rule=Host(`tasks.jakehoward.tech`) && (PathPrefix(`/api/v1`) || PathPrefix(`/dav/`) || PathPrefix(`/.well-known/`) || Path(`/health`))
|
|
volumes:
|
|
- /mnt/tank/app-data/vikunja/files:/app/vikunja/files
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
networks:
|
|
- default
|
|
- traefik
|
|
|
|
frontend:
|
|
image: vikunja/frontend:latest
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.vikunja-frontend.rule=Host(`tasks.jakehoward.tech`)
|
|
environment:
|
|
- VIKUNJA_SENTRY_DSN=
|
|
networks:
|
|
- default
|
|
- traefik
|
|
depends_on:
|
|
- api
|
|
|
|
db:
|
|
image: postgres:14-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/speed/dbs/postgres/vikunja/:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=vikunja
|
|
- POSTGRES_USER=vikunja
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/speed/dbs/redis/vikunja/:/data
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|