Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shoko Server - An anime media manager - v8.5 #25

Merged
5 commits merged into from
Feb 21, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions apps/couchpotato.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash
#
# Title: CouchPotato
# Author(s): Ruud Burger, Clinton Hall, YourHuckleberry, linuxserver
# URL: http://couchpota.to - https://github.com/CouchPotato/CouchPotatoServer/
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# CORE (MANDATORY) DO NOT CHANGE ###########################################

- name: 'Set Known Facts'
set_fact:
pgrole: "couchpotato"
intport: "5050"
extport: "5050"
image: "linuxserver/couchpotato:latest"

- name: 'Including cron job'
include_tasks: '/opt/communityapps/apps/_core.yml'

# LABELS ################################################################
- name: 'Adding Traefik'
set_fact:
pg_labels:
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- '/opt/appdata/{{pgrole}}:/config'
- '{{path.stdout}}/unionfs/{{pgrole}}/:/movies'
- '{{path.stdout}}/downloads/{{pgrole}}/:/downloads'
- '/etc/localtime:/etc/localtime:ro'

- name: 'Setting PG ENV'
set_fact:
pg_env:
PUID: 1000
PGID: 1000


# MAIN DEPLOYMENT ##############################################################

- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'

# POST DEPLOYMENT ##############################################################

- name: 'Post Deployment Notes'
debug:
msg: "\n* Login: root:plexguide *\n"
67 changes: 67 additions & 0 deletions apps/mariadb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash
#
# Title: MariaDB
# Author(s): MariaDB Foundation
# URL: https://mariadb.com - https://github.com/docker-library/mariadb
# GNU: General Public License v2.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# CORE (MANDATORY) DO NOT CHANGE ###########################################

- name: 'Set Known Facts'
set_fact:
pgrole: "mariadb"
intport: "3306"
extport: "9191"
image: "mariadb:latest"

- name: 'Including cron job'
include_tasks: '/opt/communityapps/apps/_core.yml'

# LABELS ################################################################
- name: 'Adding Traefik'
set_fact:
pg_labels:
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- '/opt/appdata/{{pgrole}}:/var/lib/mysql'
- '/etc/localtime:/etc/localtime:ro'

- name: 'Setting PG ENV'
set_fact:
pg_env:
MYSQL_ROOT_PASSWORD: plexguide

# MAIN DEPLOYMENT ##############################################################

- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'

# POST DEPLOYMENT ##############################################################

- name: 'Post Deployment Notes'
debug:
msg: "\n* Login: root:plexguide *\n"
73 changes: 73 additions & 0 deletions apps/pydio-cells.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/bin/bash
#
# Title: Pydio Cells
# Author(s): Pydio
# URL: https://pydio.com
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# CORE (MANDATORY) DO NOT CHANGE ###########################################

- name: 'Set Known Facts'
set_fact:
pgrole: "pydio-cells"
intport: "8080"
extport: "8585"
image: "pydio/cells:latest"

- name: 'Including cron job'
include_tasks: '/opt/communityapps/apps/_core.yml'

# LABELS ################################################################
- name: 'Adding Traefik'
set_fact:
pg_labels:
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- '/opt/appdata/{{pgrole}}/pydio.json:/root/.config/pydio/cells/pydio.json'
- '/opt/appdata/{{pgrole}}/data:/root/.config/pydio/cells/data'
- '/opt/appdata/{{pgrole}}/logs:/root/.config/pydio/cells/logs'
- '/opt/appdata/{{pgrole}}/services:/root/.config/pydio/cells/services'
- '/mnt:/mnt'
- '/etc/localtime:/etc/localtime:ro'

- name: 'Setting PG ENV'
set_fact:
pg_env:
CELLS_BIND: localhost:8080
CELLS_EXTERNAL: '{{pgrole}}.{{domain.stdout}},{{tldset}}'


# MAIN DEPLOYMENT ##############################################################

- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'

# POST DEPLOYMENT ##############################################################

- name: 'Post Deployment Notes'
debug:
msg: "\n* Pydio Cells requires a MySQL or MariaDB database (not included) *\n* Version 5.6 or higher (or MariaDB equivalent) *\n"
70 changes: 70 additions & 0 deletions apps/pydio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/bin/bash
#
# Title: Pydio (formerly AjaXplorer)
# Author(s): Pydio, linuxserver
# URL: https://pydio.com
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# CORE (MANDATORY) DO NOT CHANGE ###########################################

- name: 'Set Known Facts'
set_fact:
pgrole: "pydio"
intport: "443"
extport: "9149"
image: "linuxserver/pydio:latest"

- name: 'Including cron job'
include_tasks: '/opt/communityapps/apps/_core.yml'

# LABELS ################################################################
- name: 'Adding Traefik'
set_fact:
pg_labels:
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- '/opt/appdata/{{pgrole}}/config:/config'
- '/opt/appdata/{{pgrole}}/data:/data'
- '/mnt:/mnt'
- '/etc/localtime:/etc/localtime:ro'

- name: 'Setting PG ENV'
set_fact:
pg_env:
PUID: 1000
PGID: 1000

# MAIN DEPLOYMENT ##############################################################

- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'

# POST DEPLOYMENT ##############################################################

- name: 'Post Deployment Notes'
debug:
msg: "\n* You must create a user and database for pydio to use in a mysql/mariadb or postgresql server.\n* You can use sqlite with no further config needed, but this should only be considered for testing purposes.\n* In the setup page for database, use the ip address rather than hostname..."
62 changes: 62 additions & 0 deletions apps/shoko.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash
#
# Title: Shoko Anime Server
# Author(s): Cayde Dixon (Cazzar), Thomas Baer (da3dsoul), ElementalCrisis, hidden4003
# URL: https://shokoanime.com/ - https://github.com/ShokoAnime/ShokoServer
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# FACTS #######################################################################
- name: 'Set Known Facts'
set_fact:
pgrole: 'shoko'
intport: '8111'
extport: '8111'
image: 'cazzar/shokoserver'

# CORE (MANDATORY) ############################################################
- name: 'Including cron job'
include_tasks: '/opt/communityapps/apps/_core.yml'

# LABELS ######################################################################
- name: 'Adding Traefik'
set_fact:
pg_labels:
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/mnt:/mnt'
- '/opt/appdata/{{pgrole}}/data:/home/shoko/.shoko'

- name: 'Setting PG ENV'
set_fact:
pg_env:
PUID: 1000
PGID: 1000

# MAIN DEPLOYMENT #############################################################
- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'
Loading