fix: update timezone variable and remove healthcheck from seafile service

This commit is contained in:
2025-07-01 10:52:29 +08:00
parent 88e6b245c4
commit 1dcd0bf9d1
+3 -11
View File
@@ -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: