Git Product home page Git Product logo

docker-compose-gitea's Introduction

Docker-Compose-Gitea

A Docker Compose file for Gitea - Git with a cup of tea (gitea.io)

Data will be saved in separate docker volumes to enable easy upgrades!

Requirements

  • docker
  • docker-compose

Getting Started

  1. Copy .env.dist to .env and make your modifications
  2. Start docker containers:
$ docker-compose up -d

After that open gitea installer via browser: http://localhost:3000 and fill the form according your .env settings.

Set gitea-db:3306 in Host field and complete setup.

After setup is completed register a new user (use link from the navigation bar).

The first registered user has admin privileges.

Environment Configuration

VARIABLE Description DEFAULT
GITEA_VERSION Docker-Image-Version latest
GITEA_HOSTNAME Hostname for Gitea Application localhost
GITEA_WEB_PORT GUI-Port for accessing Gitea 3000
GITEA_SSH_PORT Port for accessing Gitea via SSH 2222
MYSQL_ROOT_PASSWORD MySQL root password root
MYSQL_DATABASE Database name for gitea gitea
MYSQL_USER Database user for gitea gitea
MYSQL_PASSWORD Password for MySQL user gitea

Create systemd unit

  1. Copy docker-gitea.service.dist to docker-gitea.service
  2. Adjust WorkingDirectory in service file if needed
  3. Create symbolic link: ln -s docker-gitea.service /etc/systemd/system/docker-gitea.service
  4. Start service: systemctl start docker-gitea
  5. (optional) Enable autostart at boot: systemctl enable docker-gitea

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.