in application.properties add:
spring.data.rest.basePath=/api- or -
in application.yml add:
| #!/bin/sh | |
| docker rm -f $(docker ps -qa) | |
| docker volume rm $(docker volume ls -q) | |
| cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke" | |
| for dir in $cleanupdirs; do | |
| echo "Removing $dir" | |
| rm -rf $dir | |
| done |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| # Tutorial: https://blog.creekorful.com/2020/01/how-to-expose-traefik-2-dashboard-securely-docker-swarm/ | |
| version: '3' | |
| services: | |
| reverse-proxy: | |
| image: traefik:2.3 | |
| command: | |
| # - '--log.level=DEBUG' | |
| - '--api=true' | |
| - '--api.dashboard=true' |
| #!/usr/bin/env bash | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| export PATH | |
| # fonts color | |
| Green="\033[32m" | |
| Red="\033[31m" | |
| Yellow="\033[33m" | |
| GreenBG="\033[42;37m" | |
| RedBG="\033[41;37m" |