Ubuntu 18 recommended install setup/Sanity check

Also for completeness this is my stack I am running

version: '3'
services:
  portainer:
    container_name: portainer
    image: portainer/portainer
    volumes:
      - /home/hass/svr/docker/portainer:/data
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - "9000:9000"
  homeassistant:
    container_name: home-assistant
    restart: unless-stopped
    image: homeassistant/home-assistant
    volumes:
      - /home/hass/svr/docker/hass-config:/config
      - /etc/localtime:/etc/localtime:ro
      - /home/hass/svr/docker/hass_media:/media
    network_mode: host
    privileged: true
  nodered1:
    container_name: node-red-1
    restart: unless-stopped
    image: nodered/node-red-docker
    depends_on:
      - "homeassistant"
    user: root
    volumes:
      - /home/hass/svr/docker/node-red-1/user:/data
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "1880:1880"
  letsencrypt: 
    image: linuxserver/letsencrypt 
    container_name: letsencrypt 
    restart: unless-stopped 
    cap_add: 
     - NET_ADMIN  
    volumes: 
     - /etc/localtime:/etc/localtime:ro
     - /home/hass/svr/docker/letsencrypt/config:/config  
    environment: 
     - PGID=1000
     - PUID=1000
     - EMAIL=removed
     - URL=removed
     - SUBDOMAINS=home,port,nred
     - VALIDATION=http
     - TZ=removed
    ports:
     - "80:80"
     - "443:443"

what??? Bull…t

1 Like

For anyone else trying to fix this error,
“Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use”

Here is what I did:

  1. Update everything
    sudo apt update
    sudo apt upgrade

  2. Run “sudo netstat -ptln” and note the ####/docker-proxy number

  3. Run “sudo kill ####” for each docker-proxy that has the port you want free

  4. Run “docker network prune”

  5. now go to your docker compose yaml location and run “docker-compose up”

It will take a while for everything to run first time.

Now I get a “Welcome to our server” “The website is currently being setup under this address” web page so this is my next issue to solve.

#####Edit
It seems this is temporary fix, as it goes back to using the ports after each reboot

#####Update - Fixed
I rebuilt the machine, and instead of installing docker from dockers repo I installed it from ubuntu’s repo

Install Docker for ubuntu repo

sudo apt install docker.io

sudo systemctl start docker

sudo systemctl enable docker

docker --version

Install Docker-compose for ubuntu repo

sudo apt install docker-compose

Run sudo docker-compose

Thanks, I managed to get everything working a few hours ago. The last thing left is picking an external database, so I need to research which one I want.

It feels so good to get it working on a NUC in docker with at reverse proxy and everything!