mirror of https://github.com/portainer/portainer
parent
c3f22fe989
commit
5947e262fc
@ -1,4 +1,2 @@
|
||||
node_modules
|
||||
bower_components
|
||||
.git
|
||||
Dockerfile
|
||||
*
|
||||
!dist
|
||||
|
@ -0,0 +1,4 @@
|
||||
FROM nginx:1.9.9
|
||||
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY users.htpasswd /etc/nginx/users.htpasswd
|
@ -0,0 +1,17 @@
|
||||
upstream dockerui {
|
||||
server dockerui:9000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
auth_basic "Docker UI";
|
||||
auth_basic_user_file /etc/nginx/users.htpasswd;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_pass http://dockerui;
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
dockerui:
|
||||
image: dockerui/dockerui
|
||||
privileged: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
nginx:
|
||||
build: .
|
||||
links:
|
||||
- dockerui
|
||||
ports:
|
||||
- 80:80
|
@ -0,0 +1 @@
|
||||
user:{PLAIN}password
|
Loading…
Reference in new issue