Hi everyone,
I am seeking clarification on how the new docker deployment works on version 12. For those that don’t know unRAID uses docker run commands for its containers. It is possible to use docker compose however, not of the box the OS doesn’t support it, and it isn’t as polished of a user experience compared to the built in docker run stuff, so I’d like to continue using seafile with docker run.
On previous versions of seafile this hasn’t been an issue, but with the introduction of the .env
file for docker based deployments it has become one. On prior versions I would have my database in one docker container, and seafile in another, and map all the relevant paths, usernames, passwords, etc. in the docker run command.
Here is an example of the docker run command I would use on an older version of seafile.
docker run
-d
--name='seafile-10'
--net='br0'
--pids-limit 2048
-e TZ="America/Los_Angeles"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="server"
-e HOST_CONTAINERNAME="seafile-10"
-e 'TCP_PORT_80'='8080'
-e 'SEAFILE_SERVER_HOSTNAME'='seafile.example.com'
-e 'DB_HOST'='seafile-10-mariadb'
-e 'DB_ROOT_PASSWD'='changeme'
-e 'SEAFILE_ADMIN_EMAIL'='admin@changeme.com'
-e 'SEAFILE_ADMIN_PASSWORD'='changeme'
-e 'TCP_PORT_443'=''
-e 'SEAFILE_SERVER_LETSENCRYPT'='false'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http://[IP]:[PORT:80]'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/chirmstream/unraid-templates/main/seafile-10/seafile-icon-512x512.png'
-v '/mnt/user/seafile-10/':'/shared/':'rw' 'seafileltd/seafile-mc:10.0-latest'
Is there anyway I can pass through the new .env
parameters directly to the container using docker run command? Less ideal would be passing through the location of the .env
file in the docker run command, but I am unsure of how to do that as well.
If anybody has gotten seafile 12 to work on unRAID I’d love to hear how you did it. Thanks.