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):
These web pages (*.html) are typically rendered from Quarto markdown (*.qmd) in github.com/MarineSensitivity/server:
# 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
# docker launch as daemon, rebuilding any changed containers
docker compose up -d --build
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 pg_tileserv for serving vector tiles
More info..
# ssh
pem='~/My Drive/private/msens_key_pair.pem'
ssh -i $pem ubuntu@msens1.marinesensitivity.org
# ssh with tunneling to postgis database
pem='~/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
# check disk space and remove big unused files interactively
sudo ncdu
# remove unused docker images, containers, and networks
docker system prune
# build new plumber api container
docker compose up --build plumber
100.25.173.0sudo apt upgrade