This is obviously overkill for a personal website, but I've used it as an opportunity to learn more about Docker and container orchestration. Currently my budget for this is quite limited and thus limited to a cluster with a single machine so Docker Swarm or Kubernetes doesn't really make much sense.
git clone <this-repo>
echo -n "<api_key>" > alpha_advantage_api_key.txt
echo -n <strava_client_id> > strava_client_id.txt
echo -n <strava_client_secret> > strava_client_secret.txt
echo -n <strava_refresh_token> > strava_refresh_token.txt
TAG=latest PORT=80 docker-compose up -d
# Note on macOS to use Port 80, I have to run as sudo but not for other ports
sudo PORT=80 TAG=latest docker stack deploy -c docker-compose.yml nathangrubb
curl -v <ip-address>
curl -v <ip-address>/api/v1/cycle
curl -v <ip-address>/api/v1/stock/msft
docker stack rm nathangrubb
docker stack services nathangrubb
docker stack ps nathangrubba