2 Deploying using Docker
Go Johansson edited this page 2 months ago

Downloading

$ git clone https://git.pomf.se/Pomf/uguu

Configuration

In docker/uguu.conf replace localhost with your main domain and filesdomain with your (sub)domain which you will be serving files from, in total there are 4 occurances.

In docker/.env replace localhost with your main domain and filesdomain with your (sub)domain which you will be serving files from, in total there are 2 occurances. You may also edit the rest of the variables to your liking.

Replace the content of docker/ssl/fullchain.pem & docker/ssl/privkey.pem with your own wildcard SSL certificate.

Installation

Run the Docker build script.

$ chmod a+x docker_build.sh
$ ./docker_build.sh

If everything is installed and configured correctly this should build the container and then start it, the service wont be available directly after the container has been started since Uguu needs to compile as well, so give it a few minutes.

Upgrading

As of now cloning the repo will always get you the newest version, however this might result in a loss of files and configuration, be careful before you upgrade.

TODO: Make a upgrade script.

Uninstall

$ chmod a+x docker_purge.sh
$ ./docker_purge.sh