├── .dockerignore ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── Dockerfile ├── README.md ├── images └── donate.png ├── organizr-v2.xml └── root ├── defaults └── default └── etc └── cont-init.d └── 30-install /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | .gitignore 3 | .github 4 | .gitattributes 5 | READMETEMPLATE.md 6 | README.md 7 | organizr-v2.xml 8 | images/* 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | ## Thanks, Tronyx 18 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | ## Thanks, Tronyx 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM lsiobase/alpine.nginx:3.8 2 | MAINTAINER christronyxyocum 3 | 4 | # Set version label 5 | ARG BUILD_DATE 6 | ARG VERSION 7 | 8 | # Install packages 9 | RUN \ 10 | apk add --no-cache \ 11 | curl \ 12 | php7-curl \ 13 | php7-ldap \ 14 | php7-pdo_sqlite \ 15 | php7-sqlite3 \ 16 | php7-session \ 17 | php7-zip \ 18 | php7-xmlrpc \ 19 | mediainfo 20 | 21 | # Add local files 22 | COPY root/ / 23 | 24 | # Ports and volumes 25 | EXPOSE 80 26 | VOLUME /config 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Fork of the LSIO Organizr Docker container to include the Organizr v2 development branch. 2 | 3 | # tronyx/docker-organizr-v2 4 | 5 | Feel free to submit Pull Requests and report any Issues that you may have found. 6 | 7 | ## Organizr 8 | 9 | An HTPC/Homelab services organizer that is written in PHP. 10 | 11 | ![organizr](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/organizr-icon.png) 12 | 13 | ## Usage 14 | 15 | ``` 16 | docker create \ 17 | --name=organizr \ 18 | -v :/config \ 19 | -e PGID= -e PUID= \ 20 | -p 80:80 \ 21 | tronyx/docker-organizr-v2 22 | ``` 23 | 24 | ## Parameters 25 | 26 | The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container. So `-p 8080:80` would expose port 80 from inside the container to be accessible from the host's IP on port 8080 and `http://192.168.x.x:8080` would show you what's running INSIDE the container on port 80. 27 | 28 | * `-p 80` - The port(s) 29 | * `-v /config` - Mapping the config files for Organizr 30 | * `-e PGID` Used for GroupID - see below for explanation 31 | * `-e PUID` Used for UserID - see below for explanation 32 | 33 | It is based on Alpine Linux with an s6 overlay. 34 | 35 | ### User / Group Identifiers 36 | 37 | Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™. 38 | 39 | In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below: 40 | 41 | ``` 42 | $ id 43 | uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup) 44 | ``` 45 | 46 | ## Image Tags 47 | 48 | * The `latest` tag will get you the original Organizr v2 image. 49 | * The `php-fpm` tag includes the implementation of PHP-FPM within the container instead of the default FastCGI. PHP-FPM is much more efficient, especially in terms of memory, and will include the recommended PM changes for the `www.conf` file that we recommend to users that are just getting started. One thing to note is that, if you mounted the `/etc/php7/php-fpm.d/` directory for the container to your Host, you MUST recreate your container WITHOUT that mount. You will also want to remove the `/path/to/Org/config/php` directory from your Docker Host as that can cause issues as well. This is designed as a drop-in to get PHP-FPM working without having to mount extra directories, etc. 50 | * The `plex` tag will get you the original Organizr v2 image, but with some changes found in the plex-theme branch of the GitHub repo to accommodate the [Plex Theme](https://github.com/Burry/organizr-v2-plex-theme) for Organizr v2 by Burry. 51 | * The `armhf` tag is an adaptation of the `php-fpm` image for ArmHF platforms like the RaspberryPi. 52 | 53 | ## Setting up the application 54 | 55 | Setup accounts, service tabs, etc. via the webUI. More info can be found on the official [Organizr GitHub repository](https://github.com/causefx/Organizr/). 56 | 57 | ## Info 58 | 59 | * Shell access whilst the container is running: `docker exec -it organizr /bin/bash` 60 | * To monitor the logs of the container in realtime: `docker logs -f organizr` 61 | * Container version number: `docker inspect -f '{{ index .Config.Labels "build_version" }}' organizr` 62 | * Image version number: `docker inspect -f '{{ index .Config.Labels "build_version" }}' tronyx/docker-organizr-v2` 63 | -------------------------------------------------------------------------------- /images/donate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tronyx/docker-organizr-v2/868a8a9438bd032ee536262d4d1d9892d33dfdcd/images/donate.png -------------------------------------------------------------------------------- /organizr-v2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | https://raw.githubusercontent.com/christronyxyocum/docker-organizr-v2/master/organizr-v2.xml 4 | True 5 | Tools: Network:Web Network:Proxy Network:Other 6 | 2017-03-11 7 | 8 | [center][img width='300px' src='https://raw.githubusercontent.com/causefx/Organizr/master/images/organizr_logo_d.png'][/center] 9 | 10 | [center][font size=4]Organizr Change Log[/font][/center] 11 | [b]11.03.2017:[/b] Initial Release. 12 | 13 | organizr 14 | https://github.com/causefx/Organizr 15 | https://www.reddit.com/r/organizr/ 16 | christronyxyocum/docker-organizr-v2 17 | https://hub.docker.com/r/tronyx/docker-organizr-v2/ 18 | bridge 19 | false 20 | HTPC/Homelab Services Organizer - Written in PHP 21 | http://[IP]:[PORT:80]/ 22 | https://raw.githubusercontent.com/causefx/Organizr/master/images/organizr_logo_d.png 23 | HTPC/Homelab Services Organizer - Written in PHP 24 | [br] 25 | [br][br][b][u][span style='color: #E80000;']Configuration[/span][/u][/b][br] 26 | [b]/config[/b] : Storing all organizr config files [br] 27 | 28 | 29 | bridge 30 | 31 | 32 | 33 | 80 34 | tcp 35 | 36 | 37 | 38 | 39 | 40 | 41 | /config 42 | rw 43 | 44 | 45 | 46 | 47 | 99 48 | PUID 49 | 50 | 51 | 100 52 | PGID 53 | 54 | 55 | Donations 56 | https://paypal.me/causefx 57 | https://raw.githubusercontent.com/christronyxyocum/docker-organizr-v2/master/images/donate.png 58 | lsiobase/alpine.nginx:3.8 59 | 60 | -------------------------------------------------------------------------------- /root/defaults/default: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default_server; 3 | root /config/www/Dashboard; 4 | index index.html index.htm index.php; 5 | 6 | server_name _; 7 | client_max_body_size 0; 8 | 9 | location / { 10 | try_files $uri $uri/ /index.html /index.php?$args =404; 11 | } 12 | location ~ \.php$ { 13 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 14 | # With php7-cgi alone: 15 | fastcgi_pass 127.0.0.1:9000; 16 | # With php7-fpm: 17 | #fastcgi_pass unix:/var/run/php7-fpm.sock; 18 | fastcgi_index index.php; 19 | #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 20 | include /etc/nginx/fastcgi_params; 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /root/etc/cont-init.d/30-install: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv bash 2 | 3 | # Fetch site or update existing 4 | if [[ ! -d /config/www/Dashboard/.git ]]; then 5 | echo '-----------------------' 6 | echo '| Installing Organizr |' 7 | echo '-----------------------' 8 | git clone -b v2-develop https://github.com/causefx/Organizr /config/www/Dashboard 9 | elif [[ -d /config/www/Dashboard/.git ]]; then 10 | echo '-----------------------' 11 | echo '| Updating Organizr |' 12 | echo '-----------------------' 13 | cd /config/www/Dashboard || return 14 | git reset --hard origin/v2-develop 15 | git pull --rebase 16 | fi 17 | 18 | # Set Permissions 19 | chown -R abc:abc \ 20 | /config 21 | --------------------------------------------------------------------------------