Skip to content

Commit b860ab7

Browse files
author
Jamie Hanlon
committed
Initial commit.
0 parents  commit b860ab7

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM nginx
2+
MAINTAINER James Hanlon
3+
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
6+
RUN apt-get update && \
7+
apt-get install -y gitweb fcgiwrap
8+
9+
RUN ln -s /usr/share/gitweb /opt/www
10+
11+
RUN rm -v /etc/nginx/nginx.conf
12+
ADD nginx.conf /etc/nginx

README.md

Whitespace-only changes.

docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '2'
2+
services:
3+
gitweb:
4+
build: .
5+
ports:
6+
- "5000:5000"

nginx.conf

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
user www-data;
2+
3+
worker_processes 1;
4+
5+
pid /var/run/nginx.pid;
6+
7+
events {
8+
worker_connections 1024;
9+
}
10+
11+
http {
12+
include /etc/nginx/mime.types;
13+
default_type application/octet-stream;
14+
sendfile on;
15+
gzip off;
16+
keepalive_timeout 65;
17+
18+
server {
19+
listen 80;
20+
root /opt/www;
21+
location / {
22+
fastcgi_pass unix:/var/run/fcgiwrap.socket;
23+
include fastcgi_params;
24+
fastcgi_param SCRIPT_FILENAME /opt/www/gitweb.cgi;
25+
fastcgi_param PATH_INFO $uri;
26+
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)