mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-28 05:13:07 +00:00
fix
This commit is contained in:
64
apps/dockergc.yml
Normal file
64
apps/dockergc.yml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Title: PlexGuide (Reference Title File)
|
||||||
|
# Author(s): Admin9705
|
||||||
|
# URL: https://plexguide.com - http://github.plexguide.com
|
||||||
|
# GNU: General Public License v3.0
|
||||||
|
################################################################################
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
# FACTS #######################################################################
|
||||||
|
- name: 'Set Known Facts'
|
||||||
|
set_fact:
|
||||||
|
pgrole: 'dockergc'
|
||||||
|
intport: '1'
|
||||||
|
extport: '1'
|
||||||
|
image: 'clockworksoul/docker-gc-cron'
|
||||||
|
|
||||||
|
# CORE (MANDATORY) ############################################################
|
||||||
|
- name: 'Including cron job'
|
||||||
|
include_tasks: '/opt/communityapps/apps/_core.yml'
|
||||||
|
|
||||||
|
# MANDATORY DOCKERGC ##########################################################
|
||||||
|
- name: Install docker-gc-exclude
|
||||||
|
template:
|
||||||
|
src: /opt/communityapps/apps/templates/docker-gc-exclude
|
||||||
|
dest: /opt/appdata/{{pgrole}}/docker-gc-exclude
|
||||||
|
force: yes
|
||||||
|
mode: 0775
|
||||||
|
owner: '1000'
|
||||||
|
group: '1000'
|
||||||
|
|
||||||
|
# LABELS ######################################################################
|
||||||
|
- name: 'Setting PG Volumes'
|
||||||
|
set_fact:
|
||||||
|
pg_volumes:
|
||||||
|
- /opt/appdata/dockergc/docker-gc-exclude:/etc/docker-gc-exclude
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
- name: 'Setting PG ENV'
|
||||||
|
set_fact:
|
||||||
|
pg_env:
|
||||||
|
PUID: '1000'
|
||||||
|
PGID: '1000'
|
||||||
|
CLEAN_UP_VOLUMES: 1
|
||||||
|
|
||||||
|
# MAIN DEPLOYMENT #############################################################
|
||||||
|
- name: 'Deploying {{pgrole}}'
|
||||||
|
docker_container:
|
||||||
|
name: '{{pgrole}}'
|
||||||
|
image: '{{image}}'
|
||||||
|
pull: yes
|
||||||
|
volumes: '{{pg_volumes}}'
|
||||||
|
env: '{{pg_env}}'
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
networks:
|
||||||
|
- name: plexguide
|
||||||
|
aliases:
|
||||||
|
- '{{pgrole}}'
|
||||||
|
state: started
|
||||||
|
labels:
|
||||||
|
traefik.enabled: 'false'
|
||||||
Reference in New Issue
Block a user