Update Docker run command and docker-compose file to add /etc/localtime as a read-only volume

This commit is contained in:
Roger Gonzalez 2024-12-06 15:03:52 -03:00
parent eb9923bec5
commit d77b8a580d
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -82,7 +82,7 @@ find /your/media/location -name "*.srt" | python3 subscleaner.py
To use the Docker image, you can run the container with the following command:
``` sh
docker run -e CRON="0 0 * * *" -v /your/media/location:/files rogsme/subscleaner
docker run -e CRON="0 0 * * *" -v /your/media/location:/files -v /etc/localtime:/etc/localtime:ro rogsme/subscleaner
```
- Replace `0 0 * * *` with your desired cron schedule for running the script.
@ -103,6 +103,7 @@ Add this container to your `docker-compose.custom.yaml`:
- CRON=0 0 * * *
volumes:
- ${MEDIA_DIRECTORY}:/files
- /etc/localtime:/etc/localtime:ro
```
To get more information on how to add your own containers in YAMS: https://yams.media/advanced/add-your-own-containers/