Skip to content

Instantly share code, notes, and snippets.

@kdorff
Last active April 27, 2023 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdorff/b54f55d0c5b261c6229d8541c8a236e1 to your computer and use it in GitHub Desktop.
Save kdorff/b54f55d0c5b261c6229d8541c8a236e1 to your computer and use it in GitHub Desktop.
Notes for installing and running a docker-compose stack on a Proxmox Alpine Container.
Notes for my video https://www.youtube.com/watch?v=DFZDAL6lVSU
apk add --update openrc openssh
rc-update add sshd
service sshd start
adduser kevin
apk add sudo
vi /etc/sudoers
kevin ALL=(ALL:ALL) ALL
vi /etc/ssh/sshd_config
AllowUsers kevin
service sshd restart
ifconfig
IP is: ?
Use Terminal, ssh in as kevin
sudo su -
vi /etc/apk/repositories
http://ftp.halifax.rwth-aachen.de/alpine/v3.17/main
http://ftp.halifax.rwth-aachen.de/alpine/v3.17/community
apk update
apk add --update docker docker-cli-compose
rc-update add docker boot
service docker start
service docker status
addgroup kevin docker
Logout of root AND kevin
Login to kevin
We'll install:
https://hub.docker.com/r/louislam/uptime-kuma
mkdir docker
cd docker
FILE docker-compose.yml
-------------------------------
version: '2.4'
services:
uptime-kuma:
image: louislam/uptime-kuma:latest
container_name: uptime-kuma
restart: unless-stopped
volumes:
- ./uptime-kuma/:/app/data
ports:
- 3001:3001
mkdir uptime-kuma
SCRIPT update-and-restart.sh
------------------
#!/bin/sh
docker compose pull && docker compose down && docker compose up -d
chmod +x ./update-and-restart.sh
./update-and-restart.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment