infrastructure/ansible/roles/vikunja/files/docker-compose.yml

60 lines
1.7 KiB
YAML
Raw Normal View History

2023-09-07 20:18:32 +01:00
version: "2.3"
services:
2024-02-12 14:12:17 +00:00
vikunja:
image: vikunja/vikunja:latest
2023-09-07 20:18:32 +01:00
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 }}"
2023-09-07 20:18:32 +01:00
- 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
2023-09-09 16:22:22 +01:00
- VIKUNJA_MAILER_ENABLED=true
- VIKUNJA_MAIL_FROMEMAIL={{ vault_from_email }}
- VIKUNJA_MAILER_USERNAME={{ vault_smtp_username }}
- VIKUNJA_MAILER_PASSWORD={{ vault_smtp_password }}
2023-09-09 16:22:22 +01:00
- VIKUNJA_MAILER_HOST=smtp.eu.mailgun.org
2024-02-12 14:12:17 +00:00
- VIKUNJA_SENTRY_DSN=
2023-09-07 20:18:32 +01:00
- TZ={{ timezone }}
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
labels:
- traefik.enable=true
2024-02-12 14:12:17 +00:00
- traefik.http.routers.vikunja.rule=Host(`tasks.jakehoward.tech`)
2023-09-07 20:18:32 +01:00
volumes:
- /mnt/tank/app-data/vikunja/files:/app/vikunja/files
depends_on:
- db
- redis
networks:
- default
- traefik
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
2023-09-07 20:18:32 +01:00
restart: unless-stopped
volumes:
- /mnt/speed/dbs/redis/vikunja/:/data
networks:
traefik:
external: true