Update Docker & Kubernetes/Docker/Docker Compose/Pyload.md

This commit is contained in:
2024-11-03 18:57:05 -07:00
parent 916c53d9e6
commit 2893fa6a46

View File

@ -5,7 +5,8 @@
## Docker Configuration ## Docker Configuration
```jsx title="docker-compose.yml" ```jsx title="docker-compose.yml"
--- version: '3.9'
services: services:
pyload-ng: pyload-ng:
image: lscr.io/linuxserver/pyload-ng:latest image: lscr.io/linuxserver/pyload-ng:latest
@ -13,25 +14,25 @@ services:
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
- TZ=America/Denver # (1) - TZ=America/Denver
volumes: volumes:
- /srv/containers/pyload-ng/config:/config - /srv/containers/pyload-ng/config:/config
- smb-share:/downloads - nfs-share:/downloads
ports: ports:
- 8000:8000 - 8000:8000
- 9666:9666 # (2) - 9666:9666 #optional
restart: unless-stopped restart: unless-stopped
networks: networks:
docker_network: docker_network:
ipv4_address: 192.168.5.30 ipv4_address: 192.168.5.30
volumes: volumes:
smb-share: nfs-share:
driver: local driver: local
driver_opts: driver_opts:
type: cifs type: nfs
o: username=nicole.rappe,password=REDACTED,domain=BUNNY-LAB,vers=3.0 # (3) o: addr=192.168.3.3,nolock,soft,rw # Options for the NFS mount
device: "//192.168.3.3/Downloads" # (4) device: ":/mnt/STORAGE/Downloads" # NFS path on the server
networks: networks:
docker_network: docker_network:
@ -43,6 +44,9 @@ networks:
3. This assumes you want your download folder to be a SMB network share, this section allows you to connect to the share so Pyload can download content directly into the network folder. Replace the username and `REDACTED` password with your actual credentials. Remove the `domain` argument if the SMB server is not domain-joined. 3. This assumes you want your download folder to be a SMB network share, this section allows you to connect to the share so Pyload can download content directly into the network folder. Replace the username and `REDACTED` password with your actual credentials. Remove the `domain` argument if the SMB server is not domain-joined.
4. This is the destination network share to target with the given credentials in section 3. 4. This is the destination network share to target with the given credentials in section 3.
!!! note "NFS Mount Assumptions"
The NFS folder in this example is both exported via NFS on a TrueNAS Core server, while also being exported as an NFS export. `mapall user` and `mapall group` is configured to the user and group owners of the folder set in the permissions of the dataset in TrueNAS Core. In this case, the mapall user is `BUNNY-LAB\nicole.rappe` and the mapall group is `BUNNY-LAB\Domain Admins`.
```jsx title=".env" ```jsx title=".env"
N/A N/A
``` ```