Gitea Docker#

Gitea: Git with a cup of tea - A painless self-hosted Git service.

Docker#

docker run -d --name gitea -p 3000:3000 -p 222:22 -v $PWD/gitea:/data gitea/gitea

http://localhost:3000/

Docker Compose#

version: "3"
networks:
  gitea:
    external: false
services:
  server:
    image: gitea/gitea:1.17.3
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"

Runtime Environment#

Screenshots#

https://gitea.io/images/screenshot.png

References#