GithubHelp home page GithubHelp logo

luquedaniel / cgit-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 12 KB

Cgit runing on Docker with fcgiwrap and NGINX

License: GNU General Public License v2.0

Shell 34.29% Dockerfile 65.71%
alpine cgit docker docker-compose docker-image fcgiwrap nginx

cgit-docker's Introduction

Cgit Docker

GitHub

Docker image for Cgit a web interface for Git repositories.

The image compiles and deploys Cgit with Nginx and fcgiwrap.

To run it:

docker compose up

And then open the URL localhost:8082. If you want to customize the compilation, installation or configuration, edit the corresponding files.

Cgit configuration

  • You can check and edit the Cgit configuration of the image in the cgitrc file.
  • The Nginx configuration is in the cgit_nginx.conf file.
  • cgit_build.conf contains environment variables for Cgit compilation. You need to edit it if you want to use different paths.

If you want to use your own settings you can mount your cgitrc file as follows.

services:
  cgit:
    hostname: cgit
    image: cgit:latest
    build: .
    ports:
      - "8080:80"
    restart: on-failure:5
    volumes:
        - type: bind
          source: ./path/to/cgitrc
          target: /opt/cgit/cgitrc

The Cgit scan-path configuration parameter is set to read repositories from the /opt/git path. That path can be mounted as a volume.

    volumes:
      - git-vlume:/opt/git/

References

cgit-docker's People

Watchers

 avatar  avatar

Forkers

levidurfee

cgit-docker's Issues

Bad gateway error by nginx on homepage (port 8082)

Hi,
Bad gateway response is receiving on docker compose up. I am attaching container log below

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/40-fcgiwrap.sh, not executable
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/06/21 12:22:37 [notice] 1#1: using the "epoll" event method
2023/06/21 12:22:37 [notice] 1#1: nginx/1.25.1
2023/06/21 12:22:37 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)
2023/06/21 12:22:37 [notice] 1#1: OS: Linux 5.19.0-45-generic
2023/06/21 12:22:37 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/06/21 12:22:37 [notice] 1#1: start worker processes
2023/06/21 12:22:37 [notice] 1#1: start worker process 29
2023/06/21 12:22:37 [notice] 1#1: start worker process 30
2023/06/21 12:22:37 [notice] 1#1: start worker process 31
2023/06/21 12:22:37 [notice] 1#1: start worker process 32
2023/06/21 12:22:37 [notice] 1#1: start worker process 33
2023/06/21 12:22:37 [notice] 1#1: start worker process 34
2023/06/21 12:22:37 [notice] 1#1: start worker process 35
2023/06/21 12:22:37 [notice] 1#1: start worker process 36
2023/06/21 12:22:37 [notice] 1#1: start worker process 37
2023/06/21 12:22:37 [notice] 1#1: start worker process 38
2023/06/21 12:22:37 [notice] 1#1: start worker process 39
2023/06/21 12:22:37 [notice] 1#1: start worker process 40

Please check if possible

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.