Skip to content

Repository files navigation

Metz VPS Server

DNS Setup

Create the following records:

Type Host Value
A n8n Server IP
A portainer Server IP
A vault Server IP
A traefik Server IP

Server Setup

Start by reading 0-VPS_Setup.md

Deploying:

  1. Copy the ./config folder, 1-proxy.yml and 2-infra.yml into the VPS

  2. Init Docker Swarm

docker swarm init --advertise-addr {IP-ADDR-SERVER}

You will see

docker swarm join --token {YOUR-TOKEN} {IP-ADDR-SERVER}:2377

1-Proxy

1.Create networks

docker network create --driver overlay --attachable proxy_socket_access_network
docker network create --driver overlay --attachable proxy_internet_access_network
docker network create --driver overlay --attachable security_network

2.Create volumes

docker volume create 1-traefik_certs
docker volume create 1-traefik_dumped_certs
docker volume create 1-traefik_acme_data
docker volume create 1-traefik_log_data
  1. Deploy
docker stack deploy -c 1-proxy.yml 1-proxy --detach=true

2-Infra

docker node update --label-add portainer.portainer-data=true $(docker info -f '{{.Swarm.NodeID}}')
docker volume create 2-portainer_data
docker stack deploy -c 2-infra.yml 2-infra --detach=true

Portainer and other stacks.

From this point on, you must deploy all the other stacks through Portainer (2-infra).

The usual steps are the following:

  1. Go into the stack.yml file and take note of external networks, volumes or secrets that must be created.
  2. Log into Portainer and create the necessary resources.
  3. Portainer > Stack > Deploy and copy and paste the content of the *.yml you want to deploy (ex. 3-vault.yml)
  4. Add the Environment Variables needed.
  5. Deploy

Authentik and extra config

Vaultwarden

  • You can setup Bitwarden Browser Extension and point it at a self-hosted instance.

Security

  • At the very basic level we should setup Authentik with Forward Auth to ensure only logged in users can assess the services.
  • As a next step, we should deploy Crowdsec

About

Metz VPS Server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors