Skip to content

Intelight/docker-gogs

 
 

Repository files navigation

CircleCI

Gogs in a Container

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

Supported Architectures

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

Starting the Container

docker run -d --name gogs -p 3000:3000 -p 2222:22 whatever4711/gogs Thereafter you can access gogs 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=gogs
      - POSTGRES_PASSWORD=test
      - POSTGRES_DB=gogs
    labels:
      - traefik.enable=false

  gogs:
    image: whatever4711/gogs
    depends_on:
      - postgres
    volumes:
      - git:/data
    ports:
      - 22:22
    networks:
      - frontend
      - backend
    labels:
      - traefik.backend=gogs
      - traefik.port=3000
      - traefik.frontend.rule=Host:gogs.localdomain
      - traefik.docker.network=dockergogs_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=dockergogs_frontend

About

Multiarch Container Build for Gogs.io - http://gogs.io/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 100.0%