Favicon of Forgejo

Forgejo

Self-host your software projects with an easy-to-install, lightweight forge. Get a performant, 100% free alternative to GitHub you can own and control.

Take back control of your software development process with a self-hosted, lightweight software forge. It provides a familiar environment for those migrating from proprietary platforms like GitHub, allowing for a smooth transition to a platform you truly own. Get everyone involved in delivering quality software on the same page.

Forgejo is designed to be efficient and accessible:

  • Easy to Install & Maintain: Hosting your own software forge does not require expert skills. You can control your server with minimal effort.
  • Lightweight & Performant: With a rich feature set, it maintains a low server profile and requires an order of magnitude less resources than other forges.
  • Simple Project Management: Its user experience is designed for collaboration and productivity, helping your team get things done efficiently.
  • Guaranteed Free Software: It will always be 100% Free and Open Source Software, brought to you by an inclusive community under a democratic non-profit organization.
  • Secure & Private: The platform focuses on security, scaling, federation, and privacy to protect your work.

Directory Structure

forgejo
forgejo-data
postgres-data
.env
docker-compose.yml

docker-compose.yml

services:
  server:
    image: codeberg.org/forgejo/forgejo:8
    container_name: forgejo
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - FORGEJO__database__DB_TYPE=postgres
      - FORGEJO__database__HOST=db:5432
      - FORGEJO__database__NAME=forgejo
      - FORGEJO__database__USER=forgejo
      - FORGEJO__database__PASSWD=${DB_PASSWORD}
    restart: always
    networks:
      - forgejo
    volumes:
      - ./forgejo-data:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"
    depends_on:
      - db

  db:
    image: postgres:14
    container_name: forgejo-db
    restart: always
    environment:
      - POSTGRES_USER=forgejo
      - POSTGRES_PASSWORD=${DB_PASSWORD}
      - POSTGRES_DB=forgejo
    networks:
      - forgejo
    volumes:
      - ./postgres-data:/var/lib/postgresql/data

networks:
  forgejo:
    external: false

.env

DB_PASSWORD=your_super_secret_database_password
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Forgejo

Favicon

 

  
  
Favicon

 

  
  
Favicon