502 Bad Gateway

I am practicing this on a VM. So that I can do it if I need to.
Migrate from non docker
I just did Migrate from non-docker deployment - Seafile Admin Manual
Installed regular Seafile then stopped seafile and stopped nginx.
Installed docker and ran it, but I get bad gateway error.
I think I followed all the instructions correctly.

What should I check. I checked conf files. docker-compose file. I don’t see anything wrong.

There was an error so I commented out the network. Now it doesn’t complain.

gogofc@seafile8:/opt/seafile-data$ sudo docker-compose logs
WARNING: Some networks were defined but are not used by any service: seafile-net
Attaching to seafile
seafile    | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile    | *** Booting runit daemon...
seafile    | *** Runit started as PID 22
seafile    | *** Running /scripts/enterpoint.sh...
seafile    | 2022-02-02 08:28:06 Nginx ready
seafile    | 2022-02-02 08:28:06 This is a idle script (infinite loop) to keep container running.

gogofc@seafile8:/opt/seafile-data$ sudo docker-compose ps
WARNING: Some networks were defined but are not used by any service: seafile-net
 Name                Command               State                Ports
-----------------------------------------------------------------------------------
seafile   /sbin/my_init -- /scripts/ ...   Up      0.0.0.0:80->80/tcp,:::80->80/tcp

docker-compose.yml

version: '2.0'
services:
#  db:
#    image: mariadb:10.5
#    container_name: seafile-mysql
#    environment:
#      - MYSQL_ROOT_PASSWORD=db_dev  # Requested, set the root's password of MySQL service.
#      - MYSQL_LOG_CONSOLE=true
#    volumes:
#      - /opt/seafile-mysql/db:/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-pro:9.0.4
    image: docker.seafile.top/seafileltd/seafile-pro-mc:9.0.4
    container_name: seafile
    ports:
      - "80:80"
#     - "443:443"  # If https is enabled, cancel the comment.
    volumes:
      - /opt/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
    environment:
 #     - DB_HOST=db
 #     - DB_ROOT_PASSWD=Tifeed3i  # 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=me@example.com # Specifies Seafile admin user, default is 'me@example.com'.
      - SEAFILE_ADMIN_PASSWORD=asecret     # Specifies Seafile admin password, default is 'asecret'.
      - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
      - SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
#    depends_on:
#      - db
#      - memcached
#    networks:
#      - seafile-net

#networks:
#  seafile-net:

Nginx conf

gogofc@seafile8:/opt/seafile-data/nginx/conf$ cat seafile.nginx.conf
# -*- mode: nginx -*-
# Auto generated at 02/01/2022 21:32:36
server {
listen 80;
server_name default;

    client_max_body_size 10m;

    location / {
        proxy_pass http://127.0.0.1:8000/;
        proxy_read_timeout 310s;
        proxy_set_header Host $host;
        proxy_set_header Forwarded "for=$remote_addr;proto=$scheme";
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Connection "";
        proxy_http_version 1.1;

        client_max_body_size 0;
        access_log      /var/log/nginx/seahub.access.log seafileformat;
        error_log       /var/log/nginx/seahub.error.log;
    }

    location /seafhttp {
        rewrite ^/seafhttp(.*)$ $1 break;
        proxy_pass http://127.0.0.1:8082;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        client_max_body_size 0;
        proxy_connect_timeout  36000s;
        proxy_read_timeout  36000s;
        proxy_request_buffering off;
        access_log      /var/log/nginx/seafhttp.access.log seafileformat;
        error_log       /var/log/nginx/seafhttp.error.log;
    }

    location /seafdav {
        proxy_pass         http://127.0.0.1:8080;
        proxy_set_header   Host $host;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Host $server_name;
        proxy_set_header   X-Forwarded-Proto $scheme;
        proxy_read_timeout  1200s;
        client_max_body_size 0;

        access_log      /var/log/nginx/seafdav.access.log seafileformat;
        error_log       /var/log/nginx/seafdav.error.log;
    }

    location /media {
        root /opt/seafile/seafile-server-latest/seahub;
    }

    # For letsencrypt
    location /.well-known/acme-challenge/ {
        alias /var/www/challenges/;
        try_files $uri =404;
    }
}