Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

SolidRusT/srt-gitea-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gitea Docker Compose Setup with PostgreSQL

Introduction

This repository provides the necessary files to set up a Gitea instance using Docker Compose and manage it with PostgreSQL as the database on a Debian or Ubuntu server.

Files Included

  • docker-compose.yml: Defines the Docker Compose setup for Gitea and PostgreSQL.
  • README.md: Documentation for building and launching the service.
  • gitea.service: Systemd unit file to manage the Docker Compose environment as a service.

Setup Instructions

1. Clone the Repository

git clone git@github.com:SolidRusT/srt-gitea-service.git
cd srt-gitea-service

2. Start the Docker Compose Environment

docker compose up -d

3. Check the Status of the Gitea Service

docker compose ps

4. Stop the Docker Compose Environment

docker compose down

5. Set Up Systemd Service (Optional)

To manage the Docker Compose environment as a systemd service, copy the provided gitea.service file and enable it:

sudo cp systemd.service /etc/systemd/system/gitea.service
sudo systemctl daemon-reload
sudo systemctl start gitea.service # (only after verifying the filesystem is properly mounted)

Customization and Configuration

  • The docker-compose.yml file can be modified to adjust settings such as ports, volumes, and environment variables.
  • You can customize Gitea settings by modifying the environment variables defined in the server service section.

Notes

  • The Gitea instance will be accessible at http://<server-ip>:3000.
  • SSH access is available at port 222 for repository cloning and management.
  • Data for Gitea is stored in the Docker volume gitea and PostgreSQL data is stored in ./postgres on the host system.

Troubleshooting

  • If the service fails to start, check the logs for any errors:
docker-compose logs
  • Ensure that the Docker Compose environment is properly mounted and configured.
  • Verify that the PostgreSQL database is running and accessible.

sudo journalctl -xeu gitea.service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors