Last active
July 28, 2021 17:35
-
-
Save SamYaple/ca3b6252e82144bd194284b5a0f35bdc to your computer and use it in GitHub Desktop.
unifi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
SHELL ["/bin/bash", "-c"] | |
ARG DEBIAN_FRONTEND="noninteractive" | |
RUN set -eux; \ | |
echo "deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse" > /etc/apt/sources.list; \ | |
echo "deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse" >> /etc/apt/sources.list; \ | |
echo "deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse" >> /etc/apt/sources.list; \ | |
echo "deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse" >> /etc/apt/sources.list; \ | |
apt-get update; \ | |
apt-get dist-upgrade -y; \ | |
apt-get install -y gnupg2 curl; \ | |
curl -sSL https://dl.ui.com/unifi/unifi-repo.gpg > /etc/apt/trusted.gpg.d/unifi-repo.gpg; \ | |
echo "deb http://www.ui.com/downloads/unifi/debian stable ubiquiti" > /etc/apt/sources.list.d/unifi-stable.list; \ | |
apt-get update; \ | |
apt-get dist-upgrade -y; \ | |
apt-get install -y unifi; \ | |
apt-get clean; \ | |
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* | |
VOLUME /usr/lib/unifi/logs | |
VOLUME /usr/lib/unifi/data | |
EXPOSE 10001/udp | |
EXPOSE 3478/udp | |
EXPOSE 6789/tcp | |
EXPOSE 8080/tcp | |
EXPOSE 8081/tcp | |
EXPOSE 8443/tcp | |
EXPOSE 8843/tcp | |
EXPOSE 8880/tcp | |
CMD ["java", "-Xmx2G", "-jar", "/usr/lib/unifi/lib/ace.jar", "start"] | |
#docker run -d --restart=always -v unifi_data:/usr/lib/unifi/data -v unifi_logs:/var/lib/unifi/logs -p 10001:10001/udp -p 3478:3478/udp -p 6789:6789/tcp -p 8080:8080/tcp -p 8081:8081/tcp -p 8443:8443/tcp -p 8843:8843/tcp -p 8880:8880/tcp --name unifi unifi:6.1.71-15061-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment