How to install Proxmox VE on soft RAID with Docker and Docker UI

No comments
What we need:
  1. As Proxmox doesn't support mdadm we need Debian stretch netinstall. Configure root volume as RAID10 (mdadm) + LVM (name pve).
  2. root@pve:/# cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : active raid10 sdf1[5] sde1[4] sdd1[3] sdc1[2] sdb1[1] sda1[0]
    2929886208 blocks super 1.2 512K chunks 2 near-copies [6/6] [UUUUUU]
    bitmap: 3/22 pages [12KB], 65536KB chunk
  3. Install Proxmox
  4. Install Docker
  5. Install portainer.io (nice docker UI) in docker.
    docker-compose.yml:
    portainer:
      restart: always
      image: portainer/portainer
      hostname: docker
      domainname: example.com
      volumes:
        - ./data:/data
        - /var/run/docker.sock:/var/run/docker.sock
      environment:
        - "VIRTUAL_HOST=docker.example.com"
        - "VIRTUAL_PORT=9000"
        - "LETSENCRYPT_HOST=docker.example.com"
        - "LETSENCRYPT_EMAIL=email@example.com"
    Run Portainer:
     docker-compose up -d

No comments :

Post a Comment