Installing SSL certificates
- If you are doing a new installation, follow this guide but do not
docker-compose build
yet. Instead, proceed with Step 4
of this guide.
- Stop your metasfresh-docker containers if they are already running.
- Remove your existing docker-images.
- Generate or acquire your SSL certificates.
- Place your Fullchain .pem-file and your Private Key .pem-file as
fullchain.pem
and privkey.pem
in ./metasfresh-docker/webui/sources/certs/
.
- Modify your
./metasfresh-docker/docker-compose.yml
to reflect the new port and URL (e.g. https
instead of http
).
- Rebuild your metasfresh-docker images and start the containers.
- Access your SSL metasfresh-WebUI interface on port
443/TCP
(default).
Example
cd metasfresh-docker
docker-compose stop
docker-compose rm -f
cp /my/cert-storage/myfullchain.pem ./webui/sources/certs/fullchain.pem
cp /my/cert-storage/myprivatekey.pem ./webui/sources/certs/privkey.pem
vi ./docker-compose.yml #change to "https"
docker-compose build
docker-compose up -d
View source file on GitHub.com