Hey there guys,
Long-time follower, but first-time poster here.
I first installed Hassio on a raspberry Pi, using the provided image and everything worked smoothly and perfectly.
However, this time I decided to go with the hard way. A little context first, I bought a HP Desktop to act as server for various functions, but primarily as a Hassio Server and a small web server for two wordpress instances.
So, I setup the desktop with ubuntu server (since I’ll be running headless), docker, docker-compose and everything else that I needed.
I got hassio running with the supervised installer and configured a few services just to check correct functionality.
Next I used this code (blog.ssdnodes.com) to setup a nginx-proxy so that I would be able to run all the instances needed.
version: '3'
services:
nginx:
image: nginx:1.13.1
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
dockergen:
image: jwilder/docker-gen:0.7.3
container_name: nginx-proxy-gen
depends_on:
- nginx
command: -notify-sighup nginx-proxy -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
depends_on:
- nginx
- dockergen
environment:
NGINX_PROXY_CONTAINER: nginx-proxy
NGINX_DOCKER_GEN_CONTAINER: nginx-proxy-gen
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
conf:
vhost:
html:
certs:
# Do not forget to 'docker network create nginx-proxy' before launch, and to add '--network nginx-proxy' to proxied containers.
networks:
default:
external:
name: nginx-proxy
It runs the wordpress instance perfectly because I can setup with the appropriate Environment variables to create certificates and the nginx redirect.
However, when it comes to Hassio, I am unable to do so, because the installer is standalone, and so I’m unable to access it with my domain.
What I’m asking for is, keeping the current setup, am I able to redirect to hassio in any way?
This might be a very noob question but I’ve scoured the web trying to find the solution, and even scoured to contact the nginx-proxy/docker-letsencrypt-nginx-proxy-companion developer (buchdag), but got no reply.
Thanks in advance for any help provided!!