Consolidate vikunja container
All checks were successful
/ terraform (push) Successful in 53s
/ ansible (push) Successful in 1m51s

This commit is contained in:
Jake Howard 2024-02-12 14:12:17 +00:00
parent 91a247868b
commit 58c48261e7
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,8 +1,8 @@
version: "2.3" version: "2.3"
services: services:
api: vikunja:
image: vikunja/api:latest image: vikunja/vikunja:latest
restart: unless-stopped restart: unless-stopped
environment: environment:
- VIKUNJA_DATABASE_HOST=db - VIKUNJA_DATABASE_HOST=db
@ -23,13 +23,13 @@ services:
- VIKUNJA_MAILER_USERNAME={{ vault_smtp_username }} - VIKUNJA_MAILER_USERNAME={{ vault_smtp_username }}
- VIKUNJA_MAILER_PASSWORD={{ vault_smtp_password }} - VIKUNJA_MAILER_PASSWORD={{ vault_smtp_password }}
- VIKUNJA_MAILER_HOST=smtp.eu.mailgun.org - VIKUNJA_MAILER_HOST=smtp.eu.mailgun.org
- VIKUNJA_SENTRY_DSN=
- TZ={{ timezone }} - TZ={{ timezone }}
- PUID={{ docker_user.id }} - PUID={{ docker_user.id }}
- PGID={{ docker_user.id }} - PGID={{ docker_user.id }}
labels: labels:
- traefik.enable=true - traefik.enable=true
# yamllint disable-line rule:line-length - traefik.http.routers.vikunja.rule=Host(`tasks.jakehoward.tech`)
- traefik.http.routers.vikunja-api.rule=Host(`tasks.jakehoward.tech`) && (PathPrefix(`/api/v1`) || PathPrefix(`/dav/`) || PathPrefix(`/.well-known/`) || Path(`/health`))
volumes: volumes:
- /mnt/tank/app-data/vikunja/files:/app/vikunja/files - /mnt/tank/app-data/vikunja/files:/app/vikunja/files
depends_on: depends_on:
@ -39,20 +39,6 @@ services:
- default - default
- traefik - 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: db:
image: postgres:14-alpine image: postgres:14-alpine
restart: unless-stopped restart: unless-stopped