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

74 lines
2.1 KiB
YAML
Raw Normal View History

2023-09-07 20:18:32 +01:00
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="{{ 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
2023-09-09 16:22:22 +01:00
- VIKUNJA_MAILER_ENABLED=true
- VIKUNJA_MAIL_FROMEMAIL={{ from_email }}
- VIKUNJA_MAILER_USERNAME={{ smtp_username }}
- VIKUNJA_MAILER_PASSWORD={{ smtp_password }}
- VIKUNJA_MAILER_HOST=smtp.eu.mailgun.org
2023-09-07 20:18:32 +01:00
- TZ={{ timezone }}
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
labels:
- traefik.enable=true
2023-10-01 17:10:37 +01:00
# yamllint disable-line rule:line-length
2023-09-07 20:18:32 +01:00
- 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:
2023-11-05 22:02:17 +00:00
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