Using Stremio Server with Public IP - tsaridas/stremio-docker GitHub Wiki
$ docker run -d \ --name=stremio-docker \ -e NO_CORS=1 \ -e IPADDRESS={{ YOUR PUBLIC IP }} \ -v ~/.stremio-server:/root/.stremio-server \ -p 8080:8080/tcp \ -p 11470:11470/tcp \ --restart unless-stopped \ tsaridas/stremio-docker:latest
If you set your public IP address for the IPADDRESS environment variable, then the Stremio server should automatically set the certificate to the wildcard *.519b6502d940.stremio.rocks and should generate an A record for your public IP address. You should then expose port 8080 to your server and then setup port forwarding to your router to point these two ports to your server. Once this is done you can point the WebPlayer to your streaming server on port 8080. Alternatively you can also pass AUTO_SERVER_URL=1 to the environmental variables of the container to automatically setup the server.
To find the FQDN that the certificate is pointing to, look at the folder you mounted for a file with a .pem extension. The filename is the domain you need to add your your hosts in case of local ip address.
Its generally not suggested to expose stremio directly outside as it can become a security issue without basic http authentication. Pass the environmental variables USERNAME and PASSWORD to the container to have that working.
If you setup the IPADDRESS environment variable to 0-0-0-0 the container will automatically try to get your public IP address and setup the certificates and DNS. This wont work for IPv6.