-
Notifications
You must be signed in to change notification settings - Fork 6
/
.template_new
57 lines (48 loc) · 2.29 KB
/
.template_new
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
############# https://github.com/plexguide/PlexGuide.com/graphs/contributors ###
nameoftheapp () { # name must match file; make sure it's unique
container_reset # do not delete this
# VARIABLES ####################################################################
pgrole="nameoftheapp" # name this of the exact file name
image="imagename/imagename" # image nameto pull
port_inside01="75000" # port for inside container
port_outside01="75000" # port for outside container / how accessed
traefik_extport="75000" # how traefik reaches the external port
# PATHS ########################################################################
# 1st - path on your server # 2nd - path of the container
container_path /pg /pg
container_path /pg/data/$pgrole /config/$pgrole
container_path /etc/localtime /etc/localtime:ro
# PERMISSIONS ##################################################################
# pay attention, to exactly what's required for permissions
container_permissions GUID 1000
container_permissions PGID 1000
# CONTAINER EXTRA ENVS #########################################################
# Not required, but an example is placed below incase; delete # to use
# container_oddball capabilities SYS_PTRACE
# IMAGES EXPORT - 1ST IS DEFAULT ###############################################
# how users select an image; the 1st image is the default. If only 1, it's ok!
cat <<- EOF > "/pg/images/$pgrole.images"
linuxserver/nzbget:latest
linuxserver/nzbget:testing
EOF
# YML EXPORT ###################################################################
# You should not have to edit anything below!
container_core
cat <<- EOF > "/pg/apps/$pgrole.yml"
$container_header
### ALIGN WITH THE A ################################## START - EXTRAS #########
####### ALIGN WITH THE A ############################## CORE ###################
$container_start
published_ports:
- '${portcheck_add}${port_outside01}:${port_inside01}'
env:
$container_permissions
labels:
$container_traefik
$container_oddball
$container_ending
### ALIGN WITH THE A ################################## END - EXTRAS ###########
### END OF FILE ################################################################
EOF
}