-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vikunja with traefik labels
64 lines (62 loc) · 2.32 KB
/
Vikunja with traefik labels
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
vikunja:
image: vikunja/vikunja
container_name: vikunja
environment:
VIKUNJA_SERVICE_PUBLICURL: https://vikunja.local.com # or the IP address with the port number
VIKUNJA_DATABASE_HOST: db:3306
VIKUNJA_DATABASE_PASSWORD: CHANGE ME
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: CHANGE ME
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_FORCESSL: 0
VIKUNJA_MAILER_HOST: mailrise # OR THE IP ADDRESS
VIKUNJA_MAILER_PORT: 8025
VIKUNJA_MAILER_USERNAME: [email protected]
PUID: 1000
PGID: 1000
ports:
- 3456:3456
volumes:
- ./files:/app/vikunja/files
networks:
- traefikproxy
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.local.com`)"
- "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.local.com`)"
- "traefik.http.routers.vikunja-secure.tls=true"
- "traefik.http.routers.vikunja-secure.service=vikunja"
- "traefik.http.services.vikunja.loadbalancer.server.port=3456"
- "traefik.docker.network=traefikproxy"
db:
image: mariadb:10
container_name: vikunja_db
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: CHANGE ME (MAKE SURE TO MATCH IT WITH LINE 8)
MYSQL_USER: vikunja
MYSQL_PASSWORD: CHANGE ME (MAKE SURE TO MATCH IT WITH LINE 8)
MYSQL_DATABASE: vikunja
networks:
- traefikproxy
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"] #IN THE VIDEO I MADE A MISTAKE OF EDITING THIS. DO NOT EDIT AND LEAVE IT AS IS AS THIS WILL AUTOMATICALLY PULL THE CORRECT VALUES
interval: 2s
start_period: 30s
networks:
traefikproxy:
external: true