- Ensamblar RPI
- Descargar RPI Imager
- FLashear RPI e Iniciar
- Activar SSH (Secure Shell) Configureacion Interfaces -SSH
- Configurar IP fija www.makeuseof.com/raspberry-pi-set-static-ip
- acceder a la IP del RPI ssh pi@192.168.0.19
- Instalar Docker https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script
- Hacer cuenta de CloudFlare https://dash.cloudflare.com/sign-up
- Conseguir dominio gratis https://my.freenom.com/
- Conectar CloudFlare y dominio
To Build:
docker build -t cloudflared .
To Run:
docker run -it -d --name cloudflared cloudflared
To Exec:
docker exec -it cloudflared bash
docker-compose up --build
Hostname: cloudflared
Purpose: To be the link betweet the internet and the server
Configutarion: The ingress rules for CNAMES and ports is in the config.yml
Hostname: web
Purpose: To host a website on port 80
Mount: /html/
Hostname: ???
Purpose: To host SSH connections to the host machine and to other capable containers.
subnet: 172.20.0.0/16
ip_range: 172.28.5.0/24
gateway: 172.20.128.1
Served IPs:
- 172.20.128.1: Host Machine
- 172.20.128.2: cloudflared
- 172.20.128.3: web
- 172.20.128.4: ?
Purpose: To store the website files needed for the nginx-container