Skip to content

NPM🔗

Uses the Proxmox Alpine Linux template.

Alpine basic 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

NPM configuration🔗

Docs in progress.

NPM Compose
---
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '80:80' # Public HTTP Port
      - '443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP

    # environment:
      # Uncomment this if you want to change the location of
      # the SQLite DB file within the container
      # DB_SQLITE_FILE: "/data/database.sqlite"

      # Uncomment this if IPv6 is not enabled on your host
      # DISABLE_IPV6: 'true'

    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

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

Extra configurations🔗

Advanced settings for qBit
location /qbittorrent/ {
    proxy_pass [http://127.0.0.1:8080/](http://127.0.0.1:8080/);
    proxy_http_version 1.1;

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # Pass Origin and Referer headers intact for CSRF validation
    proxy_set_header Origin $http_origin;
    proxy_set_header Referer $http_referer;

    proxy_redirect off;
}
Advanced settings for Sonarr / Radarr
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 30m;
send_timeout 100m;