Reorganize repository structure and add configuration management
- Create organized directory structure: - docs/ for all documentation files - config/ for deployment configurations and scripts - Add CLAUDE.md with project architecture and development workflow - Update README.md with new structure and current status - Move all documentation to docs/ directory - Organize Docker and Nginx configurations under config/ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
26
config/docker/gitea/docker-compose.yml
Normal file
26
config/docker/gitea/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
# DEPLOYMENT LOCATION: /opt/docker/gitea/docker-compose.yml
|
||||
# Move this file with: sudo cp gitea-docker-compose.yml /opt/docker/gitea/docker-compose.yml
|
||||
# Create data directory: sudo mkdir -p /opt/docker/gitea/data
|
||||
# Set permissions: sudo chown -R hoborg:hoborg /opt/docker/gitea
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2223:22"
|
||||
40
config/docker/gitea/setup.sh
Normal file
40
config/docker/gitea/setup.sh
Normal file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
# Gitea Docker Setup Script
|
||||
# Run with: sudo bash gitea-setup.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Setting up Gitea Docker environment..."
|
||||
|
||||
# Create directory structure
|
||||
echo "Creating /opt/docker/gitea directory..."
|
||||
mkdir -p /opt/docker/gitea/data
|
||||
|
||||
# Copy docker-compose file
|
||||
echo "Copying docker-compose.yml..."
|
||||
cp gitea-docker-compose.yml /opt/docker/gitea/docker-compose.yml
|
||||
|
||||
# Set correct permissions
|
||||
echo "Setting permissions..."
|
||||
chown -R hoborg:hoborg /opt/docker/gitea
|
||||
|
||||
# Start Gitea
|
||||
echo "Starting Gitea container..."
|
||||
cd /opt/docker/gitea
|
||||
docker-compose up -d
|
||||
|
||||
echo ""
|
||||
echo "✅ Gitea setup complete!"
|
||||
echo ""
|
||||
echo "🌐 Web interface: http://192.168.0.100:3000"
|
||||
echo "🌍 External access: http://ak-homelab.duckdns.org:3000 (after router port forwarding)"
|
||||
echo ""
|
||||
echo "📋 Next steps:"
|
||||
echo "1. Configure router port forwarding: 3000 → 192.168.0.100:3000"
|
||||
echo "2. Access web interface to complete initial setup"
|
||||
echo "3. Configure admin user and repository settings"
|
||||
echo ""
|
||||
echo "🔧 Container management:"
|
||||
echo " View logs: docker logs gitea"
|
||||
echo " Stop: docker-compose down"
|
||||
echo " Update: docker-compose pull && docker-compose up -d"
|
||||
Reference in New Issue
Block a user