fix: update service definitions to expose ports and adjust dependencies in seafile.yml

This commit is contained in:
2025-06-30 20:51:22 +08:00
parent 51aed951fe
commit 9ffda8fd78
+7 -5
View File
@@ -40,8 +40,8 @@ services:
MARIADB_AUTO_UPGRADE: 1 MARIADB_AUTO_UPGRADE: 1
volumes: volumes:
- mariadb-data:/var/lib/mysql - mariadb-data:/var/lib/mysql
# volumes: expose:
# - "${SEAFILE_MYSQL_VOLUME:-/opt/seafile-mysql/db}:/var/lib/mysql" - 3306
networks: networks:
- seafile-network - seafile-network
healthcheck: healthcheck:
@@ -56,14 +56,16 @@ services:
image: ${SEAFILE_MEMCACHED_IMAGE:-memcached:1.6.29} image: ${SEAFILE_MEMCACHED_IMAGE:-memcached:1.6.29}
container_name: seafile-memcached container_name: seafile-memcached
entrypoint: memcached -m 256 entrypoint: memcached -m 256
expose:
- 11211
networks: networks:
- seafile-network - seafile-network
seafile: seafile:
image: ${SEAFILE_IMAGE:-seafileltd/seafile-mc:12.0-latest} image: ${SEAFILE_IMAGE:-seafileltd/seafile-mc:12.0-latest}
container_name: seafile container_name: seafile
ports: expose:
- "8000:80" - 80
volumes: volumes:
- seafile-data:/shared - seafile-data:/shared
environment: environment:
@@ -165,7 +167,7 @@ services:
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- mariadb - ${SEAFILE_MYSQL_DB_HOST:-mariadb}
- memcached - memcached
# backups: # backups: