Skip to content

CloudFlare ZeroTrust🔗

An Alpine Linux template is used.

Alpine pre-setup

Alpine setup

Short info snippet about how I set up Alpine LXCs usually.
Not using a template since I dont know what I need and dont need.

Basic setup
Default timezone is wrong, change it to Estonian apk update
apk add tzdata
ln -sf /usr/share/zoneinfo/Europe/Tallinn /etc/localtime

apk update
apk upgrade

VS Code Dependancies + SSH
Using Dropbear for SSH because Alpine wiki says it uses less resources and I am using root account (yes i know i should not use root).
apk add gcompat libstdc++ bash grep wget tar curl openrc dropbear
rc-service dropbear start
rc-update add dropbear

Docker and Compose
Install:
apk add --update docker docker-compose
After install, also need to add docker to startup:
rc-update add docker boot
service docker start
service docker status

Setup🔗

There is quite a lot of information that should probably be documented here, but I’m not even sure anymore what I did exactly to get it working the way I wanted...

All settings were set up in Cloudflare Dash website.

CFZT Compose fail
---
services:
# CF Tunnel
  cloudflared:
    image: cloudflare/cloudflared:latest
    command: tunnel --no-autoupdate run --token ****
    restart: always

# Watchtower
  watchtower:
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WATCHTOWER_CLEANUP=true
      - TZ=Europe/Tallinn
    restart: unless-stopped

Doc unfinished