mirror of
https://gitea.zaclys.com/yannic/selfhosting.git
synced 2026-11-11 00:05:13 +01:00
Update seafile
This commit is contained in:
@@ -2,8 +2,9 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: ${SEAFILE_DB_IMAGE:-mariadb:10.11}
|
image: ${SEAFILE_DB_IMAGE:-mariadb:10.11}
|
||||||
container_name: seafile-mysql
|
container_name: seafile-mysql
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=${SEAFILE_DB_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${SEAFILE_DB_ROOT_PASSWORD:-}
|
||||||
- MYSQL_LOG_CONSOLE=true
|
- MYSQL_LOG_CONSOLE=true
|
||||||
- MARIADB_AUTO_UPGRADE=1
|
- MARIADB_AUTO_UPGRADE=1
|
||||||
volumes:
|
volumes:
|
||||||
@@ -23,8 +24,15 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: ${SEAFILE_REDIS_IMAGE:-redis}
|
||||||
container_name: seafile-redis
|
container_name: seafile-redis
|
||||||
|
restart: unless-stopped
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- redis-server --requirepass "$$REDIS_PASSWORD"
|
||||||
|
environment:
|
||||||
|
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
|
||||||
|
|
||||||
seafile:
|
seafile:
|
||||||
image: seafileltd/seafile-mc:13.0-latest
|
image: seafileltd/seafile-mc:13.0-latest
|
||||||
@@ -56,6 +64,8 @@ services:
|
|||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
- REDIS_PORT=6379
|
- REDIS_PORT=6379
|
||||||
- REDIS_PASSWORD=
|
- REDIS_PASSWORD=
|
||||||
|
- ENABLE_SEAFILE_AI=${ENABLE_SEAFILE_AI:-false}
|
||||||
|
- ENABLE_FACE_RECOGNITION=${ENABLE_FACE_RECOGNITION:-false}
|
||||||
volumes:
|
volumes:
|
||||||
- seafile_data:/shared:rw
|
- seafile_data:/shared:rw
|
||||||
- type: bind
|
- type: bind
|
||||||
@@ -66,9 +76,12 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
labels:
|
healthcheck:
|
||||||
caddy: https://${HOST_SEAFILE}.${DOMAIN}
|
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"]
|
||||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 10s
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user