File tree 4 files changed +47
-0
lines changed
4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ version : ' 2'
2
+ services :
3
+ gitweb :
4
+ build : .
5
+ ports :
6
+ - " 5000:5000"
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments