add database stack

This commit is contained in:
Bray 2026-03-26 18:27:27 -04:00
parent 5e5a365307
commit b44cf09f0b
2 changed files with 21 additions and 25 deletions

21
git/docker-compose.yml Normal file
View file

@ -0,0 +1,21 @@
services:
forgejo:
image: codeberg.org/forgejo/forgejo:7
container_name: mystic-forgejo
restart: unless-stopped
environment:
- FORGEJO__database__DB_TYPE=postgres
- FORGEJO__database__HOST=100.109.59.41:5432 # Your DB VM IP
- FORGEJO__database__NAME=forgejo
- FORGEJO__database__USER=forgejo
- FORGEJO__database__PASSWD=your_db_password
volumes:
- forgejo_data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22" # SSH for Git
volumes:
forgejo_data:

View file

@ -1,31 +1,6 @@
# 🛠️ Mystic Stack: Node Onboarding Guide # 🛠️ Mystic Stack: Node Onboarding Guide
Remove any standalone `node_exporter` installations to avoid port conflicts on `9100`.
```bash
sudo systemctl stop node_exporter
sudo systemctl disable node_exporter
sudo rm /etc/systemd/system/node_exporter.service
sudo systemctl daemon-reload
# Install dependencies
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg git -y
# Add Dockers official GPG key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Docker Stack
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
# Install dependencies # Install dependencies
sudo apt-get update sudo apt-get update