updated traefik configurations
This commit is contained in:
@@ -24,7 +24,7 @@ services:
|
||||
labels:
|
||||
# Local route
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.adminer.rule=Host(`adminer.frostlabs.me`)
|
||||
- traefik.http.routers.adminer.rule=Host(`miner.frostlabs.me`)
|
||||
- traefik.http.routers.adminer.entrypoints=websecure
|
||||
- traefik.http.routers.adminer.tls.certresolver=cloudflare
|
||||
- traefik.http.services.adminer.loadbalancer.server.port=8080
|
||||
|
||||
@@ -33,7 +33,7 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.swarm.network=homelab"
|
||||
- "traefik.http.routers.n8n.rule=Host(`n8n.frostlabs.me`)"
|
||||
- "traefik.http.routers.n8n.rule=Host(`n8n.bitfrost.me`)"
|
||||
- "traefik.http.routers.n8n.entrypoints=websecure"
|
||||
- "traefik.http.routers.n8n.tls.certresolver=cloudflare"
|
||||
- "traefik.http.routers.n8n.service=n8n"
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
networks:
|
||||
homelab:
|
||||
external: true
|
||||
outline_internal:
|
||||
driver: overlay
|
||||
attachable: true
|
||||
|
||||
services:
|
||||
outline:
|
||||
image: outlinewiki/outline:latest
|
||||
@@ -35,17 +28,14 @@ services:
|
||||
- homelab
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == p0
|
||||
restart_policy:
|
||||
condition: any
|
||||
# resources:
|
||||
# limits:
|
||||
# memory: 1G
|
||||
# cpus: '1.0'
|
||||
# reservations:
|
||||
# memory: 512M
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
cpus: '1.0'
|
||||
reservations:
|
||||
memory: 512M
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.swarm.network=homelab"
|
||||
@@ -57,37 +47,6 @@ services:
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
# postgres:
|
||||
# image: postgres:16-alpine
|
||||
# environment:
|
||||
# POSTGRES_USER: outline
|
||||
# POSTGRES_PASSWORD: outline_pass
|
||||
# POSTGRES_DB: outline
|
||||
# volumes:
|
||||
# - /home/doc/projects/swarm-data/appdata/outline/postgres:/var/lib/postgresql/data
|
||||
# networks:
|
||||
# - outline_internal
|
||||
# deploy:
|
||||
# replicas: 1
|
||||
# placement:
|
||||
# constraints:
|
||||
# - node.hostname == p0
|
||||
# restart_policy:
|
||||
# condition: on-failure
|
||||
# delay: 5s
|
||||
# max_attempts: 3
|
||||
# resources:
|
||||
# limits:
|
||||
# memory: 1G
|
||||
# cpus: '0.5'
|
||||
# reservations:
|
||||
# memory: 256M
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "pg_isready -U outline -d outline"]
|
||||
# interval: 10s
|
||||
# timeout: 5s
|
||||
# retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
volumes:
|
||||
@@ -99,16 +58,23 @@ services:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == p0
|
||||
# restart_policy:
|
||||
# condition: on-failure
|
||||
# delay: 5s
|
||||
# resources:
|
||||
# limits:
|
||||
# memory: 256M
|
||||
# reservations:
|
||||
# memory: 128M
|
||||
# healthcheck:
|
||||
# test: ["CMD", "redis-cli", "ping"]
|
||||
# interval: 10s
|
||||
# timeout: 3s
|
||||
# retries: 3
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
reservations:
|
||||
memory: 128M
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
networks:
|
||||
homelab:
|
||||
external: true
|
||||
outline_internal:
|
||||
driver: overlay
|
||||
attachable: true
|
||||
|
||||
@@ -33,11 +33,8 @@ services:
|
||||
- PAPERLESS_SECRET_KEY_FILE=/run/secrets/paperless-secret-key
|
||||
- PAPERLESS_ADMIN_PASSWORD_FILE=/run/secrets/paperless-admin-pass
|
||||
- PAPERLESS_URLS=https://docs.frostlabs.me
|
||||
- PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home
|
||||
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home
|
||||
# - PAPERLESS_URLS=https://docs.home.frostlabs.me
|
||||
# - PAPERLESS_ALLOWED_HOSTS=docs.home.frostlabs.me
|
||||
# - PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.home.frostlabs.me
|
||||
- PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me
|
||||
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me
|
||||
- PAPERLESS_REDIS=redis://paperless_redis:6379
|
||||
- PAPERLESS_DBHOST=10.0.4.10
|
||||
- PAPERLESS_DBPORT=5432
|
||||
@@ -70,7 +67,7 @@ services:
|
||||
reservations:
|
||||
memory: 1G
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.swarm.network=homelab"
|
||||
- "traefik.http.routers.paperless.rule=Host(`docs.frostlabs.me`)"
|
||||
- "traefik.http.routers.paperless.entrypoints=websecure"
|
||||
|
||||
@@ -9,8 +9,6 @@ services:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 30s
|
||||
placement:
|
||||
constraints: [ node.role == manager ]
|
||||
volumes:
|
||||
- /home/doc/projects/swarm-data/appdata:/source:ro
|
||||
- /home/doc/projects/backups:/destination
|
||||
|
||||
Reference in New Issue
Block a user