Seafile is not running for me using podman

Hello. I tired to run Seafile 12 locally using podman and so far it is not working for me. I tired with the help of ChatGPT but so far it did not succeed.

podman run -d
–name seafile-mysql
–network seafile-net
-e MYSQL_ROOT_PASSWORD=db_rootpass
-e MYSQL_USER=seafile
-e MYSQL_PASSWORD=db_userpass
-e MYSQL_DATABASE=seafile_db
-v /home/ahm/Desktop/seafile/mysql-data:/var/lib/mysql
docker.io/mariadb:10.11

podman run -d
–name seafile-podman
–network seafile-net
-e DB_HOST=seafile-mysql
-e DB_ROOT_PASSWD=db_rootpass
-e DB_USER=seafile
-e DB_PASSWD=db_userpass
-e SEAFILE_SERVER_HOSTNAME=192.168.0.50
-e SEAFILE_ADMIN_EMAIL=admin@example.com
-e SEAFILE_ADMIN_PASSWORD=admin1234
-v /home/ahm/Desktop/seafile/seafile-data:/shared:Z
-p 8000:80
docker.io/seafileltd/seafile-mc:12.0-latest

Only when running mysql worked for me but not seafile.

Please advise me since I am out of option.

Thanks,

I run my seafile in podman, but not this way. I use podman’s docker-compose to let the same docker config files set up the containers, so I don’t know for sure what you need to do to make this work. I do have some thoughts that might help.

The “-d” in your podman run command starts the container in “detached mode”, which basically means in the background. I would remove that from your command for now so you can see the output from the programs starting in the container. If there is an error message, this should give you a chance to see it.

The other thing I see is that there are variables in the seafile-server.yml that you aren’t setting here. For example, you don’t have a DB_PORT, NON_ROOT, SEAFILE_SERVER_PROTOCOL, and some others. Since you aren’t using the yml file to define your container, I think you need to specify all of the variables on your command line since it can’t just get the default value from the yml file.