zarend / unifi-protect-x86

Run UniFi Protect in Docker on x86 hardware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UniFi Protect x86

Run UniFi Protect in Docker on x86 hardware.

Usage

Run the container as a daemon:

docker run -d --name unifi-protect-x86  \
    --tmpfs /srv/unifi-protect/temp \
    -p 7080:7080 \
    -p 7443:7443 \
    -p 7444:7444 \
    -p 7447:7447 \
    -p 7550:7550 \
    -p 7442:7442 \
    -v unifi-protect-db:/var/lib/postgresql/10/main \
    -v unifi-protect:/srv/unifi-protect \
    markdegroot/unifi-protect-x86:latest

Now you can access UniFi Protect at https://localhost:7443/.

It's highly recommended that you set a memory limit on this container, otherwise it will use all of your RAM over time, I'm not sure if this issue is fixed on newer ARM versions. Example below with -m 2048m (2Gb memory limit):

docker run -d --name unifi-protect-x86  \
    --tmpfs /srv/unifi-protect/temp \
    -p 7080:7080 \
    -p 7443:7443 \
    -p 7444:7444 \
    -p 7447:7447 \
    -p 7550:7550 \
    -p 7442:7442 \
    -m 2048m \
    -v unifi-protect-db:/var/lib/postgresql/10/main \
    -v unifi-protect:/srv/unifi-protect \
    markdegroot/unifi-protect-x86:latest

Build your own container

To build your own container put the deb file for unifi-protect 1.13.3 (4707-Debian9_5famd64-1.13.3-85b0dd59653f41cc97b3599213a483c0.deb) in the put-unifi-core-deb-here folder and run:

docker build -t markdegroot/unifi-protect-x86 .

Important: The deb-files required to build this image are no longer hosted by UniFi. You have to find your own version of this file and alter the Dockerfile setup.

Disclaimer

This Docker image is not associated with UniFi in any way. We do not distribute any third party software and only use packages that are freely available on the internet.

About

Run UniFi Protect in Docker on x86 hardware


Languages

Language:Dockerfile 53.4%Language:Shell 46.6%