The server software is for setting up web services outside those of Github (e.g. serving website, docs and R package) using Docker (see the docker-compose.yml; with reverse proxying from subdomains to ports by Caddy):
# setup folders
mkdir -p /share/github
# clone the repository
cd /share/github
git clone https://github.com/MarineSensitivity/server
# set environment variables: echo echo
cd /share/github/server
echo 'PASSWORD=*******' > .env
# docker launch as daemon
docker compose up -d
rstudio\
integrated development environment (IDE) to code and debug directly on the server
\
More info..
shiny\
interactive applications\
e.g., shiny.marinesensitivity.org/map\
\
More info..
pgadmin\
PostGreSQL database administration interface\
\
More info..
api\
custom API: using R plumber\
\
More info..
swagger\
generic database API: using PostGREST\
\
More info..
tile\
_spatial database API: using pgtileserv for serving vector tiles\
\
More info..
# ssh
pem='/Users/bbest/My Drive/private/msens_key_pair.pem'
ssh -i $pem ubuntu@msens1.marinesensitivity.org
# ssh with tunneling to postgis database
pem='/Users/bbest/My Drive/private/msens_key_pair.pem'
ssh -i $pem -L 5432:localhost:5432 ubuntu@msens1.marinesensitivity.org
# $PASSWORD
cat '/Users/bbest/My Drive/private/msens_server_env-password.txt'
cd ~/server
git pull
# restart with any new configs
sudo docker restart
# update software
sudo docker compose up -d
100.25.173.0
sudo apt upgrade