Installation
Installation
First of all, download and install Docker Engine and Compose plugin
Clone the repo and pull submodules
git clone https://github.com/tensved/snet-matrix-framework.git cd snet-matrix-framework git submodule update --init --recursive
Create an
.env
file based onexample.env
and add data to itCreate an
.env.local
file infrontend
directory based onfrontend/example.env
and add data to itBuild and run docker containers
docker compose up -d --build
Run certbot to issue a certificate
docker compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d yourdomain.com
Uncomment all lines in the file
nginx/templates/default.conf.template
Restart the
nginx
container so that Nginx starts using the new certificate and configdocker compose restart nginx
Notes
Make sure your domain has the correct A records configured
Use
docker compose run --rm certbot renew
to renew certsThe minimal example of service is located at the path
pkg/lib/examples/snet/main.go
Last updated