Adds portainer for container monitoring

master
Abhinav Sarkar 2018-08-01 04:33:41 +00:00
parent 9de9d9f195
commit 20f442e540
3 changed files with 31 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ certs
pihole-data
gitea-data
matomo-config
portainer-data

View File

@ -106,3 +106,9 @@ services:
volumes:
- ./matomo-config:/var/www/html/config
- matomo:/var/www/html
portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer-data:/data

24
nginx-conf/portainer.conf Normal file
View File

@ -0,0 +1,24 @@
server {
listen 443 ssl;
server_name portainer.abhinavsarkar.net;
ssl_certificate /etc/nginx/certs/fullchain1.pem;
ssl_certificate_key /etc/nginx/certs/privkey1.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
proxy_set_header X-Real-IP $remote_addr; # pass on real client IP
location / {
proxy_pass http://portainer:9000;
}
}
server {
listen 80;
server_name portainer.abhinavsarkar.net;
return 301 https://$host$request_uri;
}