From 1dcd0bf9d1921c18527b15ad9b7397b3125c79a6 Mon Sep 17 00:00:00 2001 From: furyhawk Date: Tue, 1 Jul 2025 10:52:29 +0800 Subject: [PATCH] fix: update timezone variable and remove healthcheck from seafile service --- swarm/seafile.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/swarm/seafile.yml b/swarm/seafile.yml index c5dabda..9b15a30 100644 --- a/swarm/seafile.yml +++ b/swarm/seafile.yml @@ -77,7 +77,7 @@ services: - SEAFILE_MYSQL_DB_CCNET_DB_NAME=${SEAFILE_MYSQL_DB_CCNET_DB_NAME:-ccnet_db} - SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=${SEAFILE_MYSQL_DB_SEAFILE_DB_NAME:-seafile_db} - SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=${SEAFILE_MYSQL_DB_SEAHUB_DB_NAME:-seahub_db} - - TIME_ZONE=${SEAFILE_TIMEZONE:-Etc/UTC} + - TIME_ZONE=${TIME_ZONE:-Etc/UTC} - INIT_SEAFILE_ADMIN_EMAIL=${INIT_SEAFILE_ADMIN_EMAIL:-me@example.com} - INIT_SEAFILE_ADMIN_PASSWORD=${INIT_SEAFILE_ADMIN_PASSWORD:-asecret} - SEAFILE_SERVER_HOSTNAME=${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty} @@ -88,21 +88,13 @@ services: - SEAFILE_LOG_TO_STDOUT=${SEAFILE_LOG_TO_STDOUT:-false} - ENABLE_SEADOC=${ENABLE_SEADOC:-false} - SEADOC_SERVER_URL=${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty}/sdoc-server - - MEMCACHED_SERVER_HOST=memcached - - MEMCACHED_SERVER_PORT=11211 - - FORCE_HTTPS_IN_CONF=${FORCE_HTTPS_IN_CONF:-true} networks: - seafile-network - traefik-public - healthcheck: - test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1 - interval: 30s - timeout: 5s - retries: 3 - start_period: 90s labels: # Enable Traefik for this container - "traefik.enable=true" + - traefik.constraint-label=traefik-public # Global settings for compression middleware - "traefik.http.middlewares.compresstraefik.compress=true" # Match incoming requests on the specific hostname for Seafile/Seahub @@ -163,7 +155,7 @@ services: - "traefik.http.middlewares.sec-headers.headers.stsPreload=true" - "traefik.http.middlewares.sec-headers.headers.referrerPolicy=same-origin" # Specify which Docker network Traefik should use for routing - - "traefik.docker.network=traefik-public" + - "traefik.swarm.network=traefik-public" restart: unless-stopped depends_on: