diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b655095 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.8.2-buster + +RUN apt update -y + +RUN apt install unzip python3-pip python3-dev libsasl2-dev libldap2-dev libssl-dev -y + +RUN cd /opt && wget https://github.com/hrfee/jellyfin-accounts/archive/master.zip + +RUN cd /opt && unzip master.zip + +RUN pip install pyOpenSSL + +RUN pip install -r /opt/jellyfin-accounts-master/requirements.txt + +RUN cd /opt/jellyfin-accounts-master && python3 setup.py install + +ENTRYPOINT [ "python3", "/usr/local/bin/jf-accounts", "-d", "/data" ] diff --git a/README.md b/README.md index 222c38e..726954b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ A basic account management system for [Jellyfin](https://github.com/jellyfin/jel * watchdog ``` ### Install + Usually as simple as: ``` git clone https://github.com/hrfee/jellyfin-accounts.git @@ -41,7 +42,7 @@ cd jellyfin-accounts pip3 install -r requirements.txt python3 setup.py install ``` -If not, see [install](https://github.com/hrfee/jellyfin-accounts/wiki/Install). +If not, or if you want to use docker, see [install](https://github.com/hrfee/jellyfin-accounts/wiki/Install). ### Usage * Passing no arguments will run the server @@ -90,7 +91,8 @@ device = jf-accounts device_id = jf-accounts-0.1 [ui] -host = 127.0.0.1 +; Set to 0.0.0.0 to run localhost +host = 0.0.0.0 port = 8056 username = your username password = your password diff --git a/data/config-default.ini b/data/config-default.ini index 9894ffd..59625de 100644 --- a/data/config-default.ini +++ b/data/config-default.ini @@ -10,7 +10,8 @@ device = jf-accounts device_id = jf-accounts-0.1 [ui] -host = 127.0.0.1 +; Set 0.0.0.0 to run localhost +host = 0.0.0.0 port = 8056 username = your username password = your password