Skip to content

Instantly share code, notes, and snippets.

View diegofcornejo's full-sized avatar
🪄
randomtechguy

Diego Cornejo diegofcornejo

🪄
randomtechguy
View GitHub Profile
@diegofcornejo
diegofcornejo / INSTALL.md
Created August 24, 2025 21:12
Install Grafana Alloy and Node Exporter on EC2 Linux AMI 2023 and send metrics to Remote Mimir

Install Grafana Alloy and Node Exporter on EC2 Linux AMI 2023 and send metrics to Remote Mimir

Prerequisites

Create prometheus user

sudo useradd -M -U alloy

Create a directory for Grafana Alloy

@diegofcornejo
diegofcornejo / apache-guacamole-docker-compose.md
Last active August 16, 2025 04:06
Install Apache Guacamole (PostgreSQL) with docker compose

Install Apache Guacamole (PostgreSQL) with docker compose

Copy the docker compose file to the server

Get the database script for postgres

docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > initdb.sql

Init the database (just the database)

docker compose up -d postgres
docker logs -f guacamole-postgres
@diegofcornejo
diegofcornejo / chirpstack.nginx.conf
Created July 25, 2025 20:39
ChirpStack NGINX conf
server {
server_name lorawan-ns-02.diegocornejo.com;
listen 80;
# --- API ---
location ^~ /api/ {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@diegofcornejo
diegofcornejo / 1. README.md
Created July 25, 2025 16:12
The Things Stack Docker Installation Guide
name: n8n
volumes:
db_storage:
n8n_storage:
services:
postgres:
image: postgres:16.6
restart: always
@diegofcornejo
diegofcornejo / docker-compose.yml
Last active March 21, 2025 17:29
BookStack Docker Compose
name: bookstack
services:
# The container for BookStack itself
bookstack:
# You should update the version here to match the latest
# release of BookStack: https://github.com/BookStackApp/BookStack/releases
# You'll change this when wanting to update the version of BookStack used.
image: lscr.io/linuxserver/bookstack:version-v25.02

docker-compose.yml

services:
  minio:
    image: quay.io/minio/minio
    container_name: minio
    ports:
      - "127.0.0.1:9200:9000"
      - "127.0.0.1:9201:9001"
 volumes:
@diegofcornejo
diegofcornejo / 1. MicroK8S Ubuntu.md
Last active June 1, 2025 06:18
How to Install MicroK8S on Ubuntu 24.04 (Single Node)

How to Install MicroK8S on Ubuntu 24.04 (Single Node)

Install MicroK8S

sudo snap install microk8s --classic

Add the current user to the microk8s group

@diegofcornejo
diegofcornejo / docker-compose.yml
Last active February 22, 2025 02:23
Deploy IPFS node with docker compose an expose with nginx
services:
ipfs:
image: ipfs/kubo:latest
container_name: ipfs
volumes:
- ./ipfs_path:/data/ipfs
- ./ipfs_export:/export
- ./ipfs_fuse:/ipfs
- ./ipns_fuse:/ipns
@diegofcornejo
diegofcornejo / docker-compose.yml
Created January 20, 2025 15:23
Neko rooms - docker compose
networks:
default:
attachable: true
name: "neko-rooms-net"
services:
neko-rooms:
image: "m1k1o/neko-rooms:latest"
restart: "unless-stopped"
environment: