This commit is contained in:
2025-11-02 19:20:04 +00:00
parent b4f17e5d76
commit b6ae643c39
3 changed files with 58 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ services:
- "traefik.http.routers.authentik.entrypoints=websecure" - "traefik.http.routers.authentik.entrypoints=websecure"
- "traefik.http.routers.authentik.tls.certresolver=cloudflare" - "traefik.http.routers.authentik.tls.certresolver=cloudflare"
- "traefik.http.services.authentik.loadbalancer.server.port=9000" - "traefik.http.services.authentik.loadbalancer.server.port=9000"
- "traefik.docker.network=homelab" - "traefik.swarm.network=homelab"
depends_on: depends_on:
- redis - redis

View File

@@ -20,7 +20,7 @@ services:
paperless_webserver: paperless_webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest image: ghcr.io/paperless-ngx/paperless-ngx:latest
ports: ports:
- 8000:8000 - 8011:8000
volumes: volumes:
- /home/doc/swarm-data/appdata/paperless/data:/usr/src/paperless/data - /home/doc/swarm-data/appdata/paperless/data:/usr/src/paperless/data
- /home/doc/swarm-data/appdata/paperless/media:/usr/src/paperless/media - /home/doc/swarm-data/appdata/paperless/media:/usr/src/paperless/media
@@ -34,9 +34,12 @@ services:
- PAPERLESS_DBPASS_FILE=/run/secrets/postgres-master - PAPERLESS_DBPASS_FILE=/run/secrets/postgres-master
- PAPERLESS_SECRET_KEY_FILE=/run/secrets/paperless-secret-key - PAPERLESS_SECRET_KEY_FILE=/run/secrets/paperless-secret-key
- PAPERLESS_ADMIN_PASSWORD_FILE=/run/secrets/paperless-admin-pass - PAPERLESS_ADMIN_PASSWORD_FILE=/run/secrets/paperless-admin-pass
- PAPERLESS_URLS=https://docs.frostlabs.me # - PAPERLESS_URLS=https://docs.frostlabs.me
- PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home # - PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home # - PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home
- PAPERLESS_URLS=http://10.0.4.11:8011
# - PAPERLESS_ALLOWED_HOSTS=10.0.4.11
# - PAPERLESS_CSRF_TRUSTED_ORIGINS=http://10.0.4.11:8011
- PAPERLESS_REDIS=redis://paperless_redis:6379 - PAPERLESS_REDIS=redis://paperless_redis:6379
- PAPERLESS_DBHOST=10.0.4.10 # Fixed: removed http:// - PAPERLESS_DBHOST=10.0.4.10 # Fixed: removed http://
- PAPERLESS_DBPORT=5432 - PAPERLESS_DBPORT=5432

View File

@@ -0,0 +1,50 @@
services:
vikunja:
image: vikunja/vikunja:latest
environment:
VIKUNJA_DATABASE_TYPE: postgres
VIKUNJA_DATABASE_HOST: 10.0.4.10
VIKUNJA_DATABASE_USER: admin
VIKUNJA_DATABASE_PASSWORD_FILE: /run/secrets/postgres-master
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_PUBLICURL: https://tasks.frostlabs.me
VIKUNJA_SERVICE_JWTSECRET_FILE: /run/secrets/vikunja-jwt
secrets:
- postgres-master
- vikunja-jwt
volumes:
- /home/doc/swarm-data/appdata/vikunja/files:/app/vikunja/files
- /home/doc/swarm/swarm-production/stacks/apps/vikunja/config.yml:/etc/vikunja/config.yml:ro
networks:
- homelab
# healthcheck:
# test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3456/api/v1/info"]
# interval: 30s
# timeout: 5s
# retries: 3
# start_period: 30s
deploy:
replicas: 1
resources:
limits:
memory: 1G
cpus: '1.0'
reservations:
memory: 512M
labels:
- "traefik.enable=true"
- "traefik.http.routers.vikunja.rule=Host(`tasks.frostlabs.me`)"
- "traefik.http.routers.vikunja.entrypoints=websecure"
- "traefik.http.routers.vikunja.tls.certresolver=cloudflare"
- "traefik.http.services.vikunja.loadbalancer.server.port=3456"
- "traefik.swarm.network=homelab"
networks:
homelab:
external: true
secrets:
postgres-master:
external: true
vikunja-jwt:
external: true