Skip to content

Commit

Permalink
vikunja
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesTurland committed Feb 24, 2024
1 parent 8ea4271 commit ddf2df8
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions Vikunja/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: '3'

services:
vikunja:
image: vikunja/vikunja
environment:
VIKUNJA_SERVICE_PUBLICURL: https://vikunja.jimsgarage.co.uk
VIKUNJA_DATABASE_HOST: db:3306
VIKUNJA_DATABASE_PASSWORD: changeme
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: dskfj23kkjsdkjsdfjkl3sdfgfsdfhsdfkh3ozxpqzx
volumes:
- ./files:/app/vikunja/files
networks:
- proxy
depends_on:
db:
condition: service_healthy
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.vikunja.entrypoints=http"
- "traefik.http.routers.vikunja.rule=Host(`vikunja.jimsgarage.co.uk`)"
- "traefik.http.middlewares.vikunja-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.vikunja.middlewares=vikunja-https-redirect"
- "traefik.http.routers.vikunja-secure.entrypoints=https"
- "traefik.http.routers.vikunja-secure.rule=Host(`vikunja.jimsgarage.co.uk`)"
- "traefik.http.routers.vikunja-secure.tls=true"
- "traefik.http.routers.vikunja-secure.service=vikunja"
- "traefik.http.routers.vikunja.tls.certResolver=cloudflare"
- "traefik.http.services.vikunja.loadbalancer.server.port=3456"
- "traefik.docker.network=proxy"

db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: supersupersecret
MYSQL_USER: vikunja
MYSQL_PASSWORD: changeme
MYSQL_DATABASE: vikunja
networks:
- proxy
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u vikunja --password=changeme"]
interval: 2s
start_period: 30s

networks:
proxy:
external: true

0 comments on commit ddf2df8

Please sign in to comment.