I have Seafile Pro 11.0.16 deployed in docker and it works great but when I see the storage details, it says “Used: 4.2 KB / --”. When I run df
on the directory that is mounted to the container, it shows the total value of the disk there, as well as from inside the container as well (details below).
This is my docker-compose.yaml:
services:
db:
image: mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # Required, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- ./config/seafile-mysql/db:/var/lib/mysql # Required, specifies the path to MySQL data persistent store.
networks:
- seafile-net
memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
elasticsearch:
image: elasticsearch:8.13.0
container_name: seafile-elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- "xpack.security.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 4g
volumes:
- ./config/seafile-elasticsearch/data:/usr/share/elasticsearch/data # Required, specifies the path to Elasticsearch data persistent store.
networks:
- seafile-net
seafile:
image: docker.seadrive.org/seafileltd/seafile-pro-mc:11.0-latest
container_name: seafile
ports:
- "10080:80"
# - "10443:443" # If https is enabled, cancel the comment.
volumes:
- ./config/seafile-data:/shared # Required, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=${DB_ROOT_PASSWD} # Required, the value should be root's password of MySQL service.
- TIME_ZONE=${TIME_ZONE}
- SEAFILE_ADMIN_EMAIL=${SEAFILE_ADMIN_EMAIL}
- SEAFILE_ADMIN_PASSWORD=${SEAFILE_ADMIN_PASSWORD}
- SEAFILE_SERVER_LETSENCRYPT=${SEAFILE_SERVER_LETSENCRYPT} # Whether to use https or not
- SEAFILE_SERVER_HOSTNAME=${SEAFILE_SERVER_HOSTNAME} # Specifies your host name if https is enabled
depends_on:
- db
- memcached
- elasticsearch
networks:
- seafile-net
networks:
seafile-net:
and this is the outputs of the df commands:
[Nov25 12:47 AM] 30 juke@jukemini2:[seafile-pro]$ df -h ./config/seafile-data/
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 457G 19G 415G 5% /
[Nov25 12:47 AM] 31 juke@jukemini2:[seafile-pro]$ docker exec -it seafile /bin/bash
root@a29392e42163:/opt/seafile# df -h /shared
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 457G 19G 415G 5% /shared
Any help or suggestions would be greatly appreciated!