Initial docker-compose fails during startup

Hi

I am using the docker compose setup from the doc page (download.seafile.com/published/seafile-manual/docker/deploy%20seafile%20with%20docker.md) .

The compose setup fails right away, it seems like it created the database and such but I am not sure why it fails. I tried putting the server’s IP in the SERVER_NAME but it did not help, it sounded optional since I am running it locally without https.

 docker-compose up                                                                                                                                                                    
Starting seafile-memcached ... done                                                                                                                                                                                
Starting seafile-mysql     ... done                                                                                                                                                                                
Recreating seafile         ... done                                                                                                                                                                                
Attaching to seafile-mysql, seafile-memcached, seafile                                                                                                                                                             
seafile-mysql | 2020-09-13 01:44:47+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.1.46+maria-1~bionic started.                                                                                
seafile-mysql | 2020-09-13 01:44:52+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'                                                                                                                 
seafile-mysql | 2020-09-13 01:44:52+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.1.46+maria-1~bionic started.                                                                                
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] mysqld (mysqld 10.1.46-MariaDB-1~bionic) starting as process 1 ...                                                                                      
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Using mutexes to ref count buffer pool pages                                                                                                    
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: The InnoDB memory heap is disabled                                                                                                              
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins                  
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Using Linux native AIO      
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Using SSE crc32 instructions
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Initializing buffer pool, size = 256.0M
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Highest supported file format is Barracuda.
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: The log sequence number 1616753 in ibdata file do not match the log sequence number 1616763 in the ib_logfiles!
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Restoring possible half-written data pages from the doublewrite buffer...
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: 128 rollback segment(s) are active.
seafile-mysql | 2020-09-13  1:44:53 140337180211200 [Note] InnoDB: Waiting for purge to start
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.49-89.0 started; log sequence number 1616763
seafile-mysql | 2020-09-13  1:44:54 140336215095040 [Note] InnoDB: Dumping buffer pool(s) not yet started 
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Note] Recovering after a crash using tc.log
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Note] Starting crash recovery...
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Note] Crash recovery finished.
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Note] Server socket created on IP: '::'.
seafile-mysql | 2020-09-13  1:44:54 140337180211200 [Warning] 'proxies_priv' entry '@% root@7e333c1a1730' ignored in --skip-name-resolve mode.
seafile-mysql | 2020-09-13  1:44:55 140337180211200 [Note] mysqld: ready for connections.
seafile-mysql | Version: '10.1.46-MariaDB-1~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile      | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile      | *** Booting runit daemon...
seafile      | *** Runit started as PID 15
seafile      | *** Running /scripts/start.py...
seafile      | nginx: [emerg] invalid number of arguments in "server_name" directive in /etc/nginx/sites-enabled/seafile.nginx.conf:5
seafile      | nginx: [emerg] invalid number of arguments in "server_name" directive in /etc/nginx/sites-enabled/seafile.nginx.conf:5
seafile      | Traceback (most recent call last):
seafile      |   File "/scripts/start.py", line 86, in <module>
seafile      |     main()
seafile      |   File "/scripts/start.py", line 53, in main
seafile      |     call('nginx -s reload')
seafile      |   File "/scripts/utils/__init__.py", line 70, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command 'nginx -s reload' returned non-zero exit status 1.
seafile      | *** /scripts/start.py exited with status 1.
seafile      | *** Shutting down runit daemon (PID 15)...
seafile      | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
seafile      | *** Killing all processes...

compose file

version: '2.0'
services:
  db:
    image: mariadb:10.1
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=XXX
      - MYSQL_LOG_CONSOLE=true
    volumes:
      - /media/seafile/mysql:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net

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

  seafile:
    image: seafileltd/seafile-mc:latest
    container_name: seafile
    ports:
      - "40080:80"
#     - "443:443"  # If https is enabled, cancel the comment.
    volumes:
      - /media/seafile/data:/shared   # Requested, specifies the path to Seafile data persistent store.
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=XXX  # Requested, the value shuold be root's password of MySQL service.
      - TIME_ZONE=Etc/UTC  # Optional, default is UTC. Should be uncomment and set to your local time zone.
      - SEAFILE_ADMIN_EMAIL=contact@DOMAIN # Specifies Seafile admin user, default is 'me@example.com'.
      - SEAFILE_ADMIN_PASSWORD=XXX     # Specifies Seafile admin password, default is 'asecret'.
      - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
      - SEAFILE_SERVER_HOSTNAME= # Specifies your host name if https is enabled.
    depends_on:
      - db
      - memcached
    networks:
      - seafile-net

networks:
  seafile-net: