mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 21:02:21 +00:00
Initial commit
Internal port: 13034 External port: 3031 Exposed port: 3031 (line 79-80)
This commit is contained in:
82
apps/picard.yml
Normal file
82
apps/picard.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Title: MusicBrainz Picard
|
||||
# Author(s): metabrainz/timekills
|
||||
# URL: https://plexguide.com - http://github.plexguide.com
|
||||
# GNU: General Public License v3.0
|
||||
# Docker: Docker image is available at: https://hub.docker.com/r/metabrainz/picard-website
|
||||
################################################################################
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# FACTS #######################################################################
|
||||
|
||||
- name: 'Set Known Facts'
|
||||
set_fact:
|
||||
pgrole: 'picard'
|
||||
intport: '13034'
|
||||
extport: '3031'
|
||||
expose: '3031 '
|
||||
image: 'metabrainz/picard-website'
|
||||
|
||||
# CORE (MANDATORY) ############################################################
|
||||
- name: 'Including cron job'
|
||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||
|
||||
- name: 'Including folders'
|
||||
include_tasks: '/opt/plexguide/containers/_downloaders.yml'
|
||||
|
||||
- name: 'Checking for existing app data'
|
||||
stat:
|
||||
path: /opt/appdata/{{pgrole}}/core.conf
|
||||
register: confcheck
|
||||
|
||||
# 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 default Volumes'
|
||||
set_fact:
|
||||
pg_volumes:
|
||||
- '/opt/appdata/{{pgrole}}:/config'
|
||||
- '{{path.stdout}}:{{path.stdout}}'
|
||||
- '/etc/localtime:/etc/localtime:ro'
|
||||
- '/mnt:/mnt'
|
||||
|
||||
- name: 'Setting default ENV'
|
||||
set_fact:
|
||||
pg_env:
|
||||
PUID: 1000
|
||||
PGID: 1000
|
||||
DEPLOY_ENV: prod
|
||||
SERVICE_3031_NAME: picard-website
|
||||
SERVICE_3031_CHECK_TCP: true
|
||||
SERVICE_3031_CHECK_INTERVAL: 15s
|
||||
SERVICE_3031_CHECK_TIMEOUT: 3s
|
||||
|
||||
# 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}}'
|
||||
expose:
|
||||
- 3031
|
||||
state: started
|
||||
labels: '{{pg_labels}}'
|
||||
Reference in New Issue
Block a user