1.5 KiB
1.5 KiB
title, date, slug, excerpt
| title | date | slug | excerpt |
|---|---|---|---|
| Raspberry Pi 5: Part-1: Install Docker and Gitea | 2025-05-05 | raspi-5-docker-p1 | Setting up docker to containerize UI app and back-end with CI/CD |
Getting started
Welcome to the series where I will be setting up a mini server to host your own website. We will do a self hosted git server. Then we will install woodpecker, a lightweight CI/CD system to trigger pipelines in push to git repo. And then we will setup Grafana to monitor the traffic to Raspberry Pi 5. We will then add TLS with Caddy and also add some reverse proxy and also do port forwarding for more security.
Installing Docker
sudo apt update && sudo apt upgrade -y
curl -sSL https:..get.docker.com | sh
sudo usermod -aG docker $USER
Installing Gitea
mkdir -p ~/gitea
cd ~/gitea
Create the docker-compose.yaml:
version: '3'
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
volumes:
- ./gitea:/data
ports:
- '3000:3000'
- '2222:22'
Launch Gitea:
docker compose up -d
Create admin user:
docker exec -it gitea /bin/bash
gitea admin use create \
--username youradmin \
--password yourpassword \
--email you@example.com \
--admin \
--must-change-password=false
Exit the container
exit
Login to the browser at http://localhost:3000