Seafile-mc docker only works without SSL

Following the “Deploying Seafile with Docker” (https:// download. seafile. com/published/seafile-manual/docker/
guide, I have set up the seafile-mc container using the following docker-compose.yml:

version: ‘2.0’
image: mariadb:10.1
container_name: seafile-mysql
- MYSQL_ROOT_PASSWORD=***** # Requested, set the root’s password of MySQL service.
- /sharedfolders/AppData/seafile-mysql:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
- seafile-net

image: memcached:1.5.6
container_name: seafile-memcached
entrypoint: memcached -m 256
- seafile-net

image: seafileltd/seafile-mc:latest
container_name: seafile
- “80:80”
# - “443:443” # If https is enabled, cancel the comment.
- /sharedfolders/AppData/Seafile:/shared # Requested, specifies the path to Seafile data persistent store.
- DB_HOST=db
- DB_ROOT_PASSWD=***** # Requested, the value shuold be root’s password of MySQL service.
- TIME_ZONE=Europe/London # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=myemail@gmail. com # Specifies Seafile admin user, default is ‘’.
- SEAFILE_ADMIN_PASSWORD=***** # Specifies Seafile admin password, default is ‘asecret’.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=my. server. org # Specifies your host name if https is enabled.
- db
- memcached
- seafile-net


All is well, and I am able to access the web server both locally and externally. But then I want to secure the server so I do the following:

  2. Uncomment “443:443”

And the server no longer works; there is no response either from my. server. org, https:// my. server. org, or locally (within my LAN or from the host machine). The same happens even if I point SERVICE_URL in ccnet.conf and FILE_SERVER_ROOT to https. There don’t seem to be any errors in the Docker logs, and the container seems to have happily processed the Let’s Encrypt certificate.

What am I missing and can anybody help? Thank you!

I have the same problem and I think this is a bug. Not sure how this passed without validation.

rm -f /opt/seafile-data/nginx/conf/seafile.nginx.conf
docker rm -f seafile
docker-compose -f docker-compose.yml up -d

This problem is still not fixed.
Let’s encrypt is unable to update certificates

docker-compose run seafile
Starting seafile-memcached ... done
Starting seafile-mysql     ... done
*** Running /etc/my_init.d/
*** Booting runit daemon...
*** Runit started as PID 24
*** Running /scripts/
2022-05-02 16:01:03 Nginx ready
2022-05-02 16:01:03 This is a idle script (infinite loop) to keep container running.
[2022-05-02 16:01:03] Preparing for letsencrypt ...
[2022-05-02 16:01:03] Found existing cert file /shared/ssl/WEBSITE.MY_WEBSITE.COM.crt
Certificate will expire
[2022-05-02 16:01:03] Starting letsencrypt verification
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see for more information.
Traceback (most recent call last):
  File "/scripts/", line 86, in <module>
  File "/scripts/", line 51, in main
  File "/scripts/", line 80, in init_letsencrypt
    call('/scripts/ {0} {1}'.format(ssl_dir, domain))
  File "/scripts/", line 70, in call
    return subprocess.check_call(*a, **kw)
  File "/usr/lib/python3.8/", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/scripts/ /shared/ssl WEBSITE.MY_WEBSITE.COM' returned non-zero exit status 1.