Sign inSign up

whatever4711/gitea

By whatever4711

•Updated about 5 years ago

Multiarchitecture Container for https://gitea.io/

Image
2

10K+

whatever4711/gitea repository overview

CircleCI

⁠Gitea in a Container

Currently, this is a docker image based on Alpine Linux, which has Gitea⁠ installed.

⁠Supported Architectures

This multiarch image supports amd64, i386, arm32v6, and arm64v8 on Linux

⁠Starting the Container

docker run -d --name gitea -p 3000:3000 -p 22:22 whatever4711/gitea Thereafter you can access gitea on http://localhost:3000⁠

⁠With DB and Traefik (Multiarch)

Install docker-compose and run docker-compose up -d

version: '3'
networks:
  backend:
    driver: bridge
  frontend:
    driver: bridge

volumes:
  git:
  db:

services:
  postgres:
    image: postgres:alpine
    networks:
      - backend
    volumes:
      - db:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=test
      - POSTGRES_DB=gitea
    labels:
      - traefik.enable=false

  gitea:
    image: whatever4711/gitea
    depends_on:
      - postgres
    volumes:
      - git:/data
    ports:
      - 22:22
    networks:
      - frontend
      - backend
    labels:
      - traefik.backend=gitea
      - traefik.port=3000
      - traefik.frontend.rule=Host:gitea.localdomain
      - traefik.docker.network=dockergitea_frontend

  traefik:
    image: traefik
    command: --docker --docker.domain=localdomain --docker.watch --web
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 80:80
      - 443:443
    networks:
      - frontend
    labels:
      - traefik.backend=traefik
      - traefik.port=8080
      - traefik.frontend.rule=Host:traefik.localdomain
      - traefik.docker.network=dockergitea_frontend

Tag summary

Content type

Image

Digest

Size

49.4 MB

Last updated

about 5 years ago

docker pull whatever4711/gitea