mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-23 00:10:19 +00:00
vikunja
This commit is contained in:
parent
8ea4271821
commit
ddf2df8a22
1 changed files with 56 additions and 0 deletions
56
Vikunja/docker-compose.yaml
Normal file
56
Vikunja/docker-compose.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue