Skip to content

Commit

Permalink
Tweaks to UID, GID, TZ and replace unwritable /path/ (#358)
Browse files Browse the repository at this point in the history
Update appfile and docker compose for LazyLibrarian, Mylar3 and Readarr
to use consistent conventions for UID, GID and TZ, as well as replacing
the unwritable /path/ location, and make the config of these paths
available in the GUI
  • Loading branch information
scottharman authored Dec 5, 2023
1 parent 13a367f commit 8a6120e
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 92 deletions.
48 changes: 24 additions & 24 deletions Apps/Lazylibrarian/appfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,24 @@
},
"health_check": "",
"envs": [
{
"key": "PUID",
"value": "1000",
"description": "",
"configurable": "no"
},
{
"key": "PGID",
"value": "1000",
"description": "",
"configurable": "no"
},
{
"key": "TZ",
"value": "Europe/London",
"description": "",
"configurable": "no"
},
{
"key": "TZ",
"value": "$TZ",
"configurable": "no",
"description": "TimeZone"
},
{
"key": "PUID",
"value": "$PUID",
"configurable": "no",
"description": "Run LazyLibrarian as specified uid."
},
{
"key": "PGID",
"value": "$PGID",
"configurable": "no",
"description": "Run LazyLibrarian as specified gid."
},
{
"key": "DOCKER_MODS",
"value": "linuxserver/calibre-web:calibre|linuxserver/mods:lazylibrarian-ffmpeg",
Expand All @@ -80,24 +80,24 @@
"host": "/DATA/Downloads",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"description": ""
"configurable": "advanced",
"description": "LazyLibrarian downloads directory"
},
{
"container": "/books",
"host": "/path/to/data",
"host": "/DATA/Media/Books",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"description": ""
"configurable": "advanced",
"description": "LazyLibrarian Books directory"
},
{
"container": "/config",
"host": "/DATA/AppData/lazylibrarian/config",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"description": ""
"description": "LazyLibrarian Config directory"
}
],
"devices": [],
Expand Down
20 changes: 10 additions & 10 deletions Apps/Lazylibrarian/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ services:
lazylibrarian:
environment:
DOCKER_MODS: linuxserver/calibre-web:calibre|linuxserver/mods:lazylibrarian-ffmpeg
PGID: "1000"
PUID: "1000"
TZ: Europe/London
PGID: $PGID
PUID: $PUID
TZ: $TZ
image: linuxserver/lazylibrarian:version-0ca9b70c
deploy:
resources:
Expand All @@ -22,7 +22,7 @@ services:
source: /DATA/Downloads
target: /downloads
- type: bind
source: /path/to/data
source: /DATA/Media/Books
target: /books
- type: bind
source: /DATA/AppData/lazylibrarian/config
Expand All @@ -31,13 +31,13 @@ services:
envs:
- container: PUID
description:
en_us: ""
en_us: "Run LazyLibrarian as specified UID"
- container: PGID
description:
en_us: ""
en_us: "Run LazyLibrarian as specified GID"
- container: TZ
description:
en_us: ""
en_us: "TimeZone"
- container: DOCKER_MODS
description:
en_us: ""
Expand All @@ -49,13 +49,13 @@ services:
volumes:
- container: /downloads
description:
en_us: ""
en_us: "LazyLibrarian downloads directory"
- container: /books
description:
en_us: ""
en_us: "LazyLibrarian Books directory"
- container: /config
description:
en_us: ""
en_us: "LazyLibrarian config directory"
container_name: lazylibrarian
x-casaos:
architectures:
Expand Down
36 changes: 21 additions & 15 deletions Apps/Mylar3/appfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,24 @@
},
"health_check": "",
"envs": [
{
"key": "PUID",
"value": "1000",
"description": "",
"configurable": "no"
},
{
"key": "PGID",
"value": "1000",
"description": "",
"configurable": "no"
}
{
"key": "TZ",
"value": "$TZ",
"configurable": "no",
"description": "TimeZone"
},
{
"key": "PUID",
"value": "$PUID",
"configurable": "no",
"description": "Run Mylar3 as specified uid."
},
{
"key": "PGID",
"value": "$PGID",
"configurable": "no",
"description": "Run Mylar3 as specified gid."
}
],
"ports": [
{
Expand All @@ -74,18 +80,18 @@
},
{
"container": "/comics",
"host": "/path/to/comics",
"host": "/DATA/Media/Comics",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"configurable": "advanced",
"description": ""
},
{
"container": "/downloads",
"host": "/DATA/Downloads",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"configurable": "advanced",
"description": ""
}
],
Expand Down
20 changes: 12 additions & 8 deletions Apps/Mylar3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: mylar3
services:
mylar3:
environment:
PGID: "1000"
PUID: "1000"
PGID: $PGID
PUID: $PUID
TZ: $TZ
image: linuxserver/mylar3:0.7.6
deploy:
resources:
Expand All @@ -20,7 +21,7 @@ services:
source: /DATA/AppData/mylar3/config
target: /config
- type: bind
source: /path/to/comics
source: /DATA/Media/Comics
target: /comics
- type: bind
source: /DATA/Downloads
Expand All @@ -29,10 +30,13 @@ services:
envs:
- container: PUID
description:
en_us: ""
en_us: "Run Mylar3 as specified uid."
- container: PGID
description:
en_us: ""
en_us: "Run Mylar3 as specified gid."
- container: TZ
description:
en_us: TimeZone
ports:
- container: "8090"
description:
Expand All @@ -41,13 +45,13 @@ services:
volumes:
- container: /config
description:
en_us: ""
en_us: "Mylar3 config directory"
- container: /comics
description:
en_us: ""
en_us: "Mylar3 Comics directory"
- container: /downloads
description:
en_us: ""
en_us: "Mylar3 downloads directory"
container_name: mylar3
x-casaos:
architectures:
Expand Down
50 changes: 25 additions & 25 deletions Apps/Readarr/appfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@
},
"health_check": "",
"envs": [
{
"key": "PUID",
"value": "1000",
"description": "",
"configurable": "no"
},
{
"key": "PGID",
"value": "1000",
"description": "",
"configurable": "no"
},
{
"key": "TZ",
"value": "Europe/London",
"description": "",
"configurable": "no"
}
{
"key": "TZ",
"value": "$TZ",
"configurable": "no",
"description": "TimeZone"
},
{
"key": "PUID",
"value": "$PUID",
"configurable": "no",
"description": "Run Readarr as specified uid."
},
{
"key": "PGID",
"value": "$PGID",
"configurable": "no",
"description": "Run Readarr as specified gid."
}
],
"ports": [
{
Expand All @@ -72,27 +72,27 @@
"volumes": [
{
"container": "/config",
"host": "/DATA/AppData/readarr/config",
"host": "/DATA/AppData/$AppID/config",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"description": ""
"description": "Readarr config directory"
},
{
"container": "/books",
"host": "/path/to/books",
"host": "/DATA/Media/Books",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"description": ""
"configurable": "advanced",
"description": "Readarr books directory"
},
{
"container": "/downloads",
"host": "/DATA/Downloads",
"mode": "rw",
"allocation": "automatic",
"configurable": "no",
"description": ""
"configurable": "advanced",
"description": "Readarr downloads directory"
}
],
"devices": [],
Expand Down
20 changes: 10 additions & 10 deletions Apps/Readarr/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: readarr
services:
readarr:
environment:
PGID: "1000"
PUID: "1000"
TZ: Europe/London
PGID: $PGID
PUID: $PUID
TZ: $TZ
image: linuxserver/readarr:0.3.10-develop
deploy:
resources:
Expand All @@ -22,7 +22,7 @@ services:
target: /config

- type: bind
source: /DATA/AppData/$AppID/books
source: /DATA/Media/Books
target: /books
- type: bind
source: /DATA/Downloads
Expand All @@ -31,13 +31,13 @@ services:
envs:
- container: PUID
description:
en_us: ""
en_us: "Run Readarr as specified UID"
- container: PGID
description:
en_us: ""
en_us: "Run Readarr as specified GID"
- container: TZ
description:
en_us: ""
en_us: "Timezon"
ports:
- container: "8787"
description:
Expand All @@ -46,13 +46,13 @@ services:
volumes:
- container: /config
description:
en_us: ""
en_us: "Readarr config directory"
- container: /books
description:
en_us: ""
en_us: "Readarr books directory"
- container: /downloads
description:
en_us: ""
en_us: "Readarr downloads directory"
container_name: readarr
x-casaos:
architectures:
Expand Down

0 comments on commit 8a6120e

Please sign in to comment.