Merge pull request #193 from 4n4n4s/main-1
Update Readme for restart with sleep in docker compose and Apprise with Telegram
This commit is contained in:
commit
24a9f23211
1 changed files with 3 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ Available options/variables and their default values:
|
||||||
| WIDTH | 1280 | Width of the opened browser (and of screen for VNC in Docker). |
|
| WIDTH | 1280 | Width of the opened browser (and of screen for VNC in Docker). |
|
||||||
| HEIGHT | 1280 | Height of the opened browser (and of screen for VNC in Docker). |
|
| HEIGHT | 1280 | Height of the opened browser (and of screen for VNC in Docker). |
|
||||||
| VNC_PASSWORD | | VNC password for Docker. No password used by default! |
|
| VNC_PASSWORD | | VNC password for Docker. No password used by default! |
|
||||||
| NOTIFY | | Notification services to use (Pushover, Slack, Telegram...), see below. |
|
| NOTIFY | | Notification services to use (Pushover, Slack, Telegram...), see below. [Apprise](https://github.com/caronc/apprise) |
|
||||||
| NOTIFY_TITLE | | Optional title for notifications, e.g. for Pushover. |
|
| NOTIFY_TITLE | | Optional title for notifications, e.g. for Pushover. |
|
||||||
| BROWSER_DIR | data/browser | Directory for browser profile, e.g. for multiple accounts. |
|
| BROWSER_DIR | data/browser | Directory for browser profile, e.g. for multiple accounts. |
|
||||||
| TIMEOUT | 60 | Timeout for any page action. Should be fine even on slow machines. |
|
| TIMEOUT | 60 | Timeout for any page action. Should be fine even on slow machines. |
|
||||||
|
|
@ -93,7 +93,7 @@ See `config.js` for all options.
|
||||||
You can add options directly in the command or put them in a file to load.
|
You can add options directly in the command or put them in a file to load.
|
||||||
|
|
||||||
##### Docker
|
##### Docker
|
||||||
You can pass variables using `-e VAR=VAL`, for example `docker run -e EMAIL=foo@bar.baz -e NOTIFY='tgram://...' ...` or using `--env-file fgc.env` where `fgc.env` is a file on your host system (see [docs](https://docs.docker.com/engine/reference/commandline/run/#env)). You can also `docker cp` your configuration file to `/fgc/data/config.env` in the `fgc` volume to store it with the rest of the data instead of on the host ([example](https://github.com/moby/moby/issues/25245#issuecomment-365980572)).
|
You can pass variables using `-e VAR=VAL`, for example `docker run -e EMAIL=foo@bar.baz -e NOTIFY='tgram://bottoken/ChatID' ...` or using `--env-file fgc.env` where `fgc.env` is a file on your host system (see [docs](https://docs.docker.com/engine/reference/commandline/run/#env)). You can also `docker cp` your configuration file to `/fgc/data/config.env` in the `fgc` volume to store it with the rest of the data instead of on the host ([example](https://github.com/moby/moby/issues/25245#issuecomment-365980572)).
|
||||||
If you are using [docker compose](https://docs.docker.com/compose/environment-variables/) (or Portainer etc.), you can put options in the `environment:` section.
|
If you are using [docker compose](https://docs.docker.com/compose/environment-variables/) (or Portainer etc.), you can put options in the `environment:` section.
|
||||||
|
|
||||||
##### Without Docker
|
##### Without Docker
|
||||||
|
|
@ -147,6 +147,7 @@ If you want it to run regularly, you have to schedule the runs yourself:
|
||||||
- macOS: [launchd](https://stackoverflow.com/questions/132955/how-do-i-set-a-task-to-run-every-so-often)
|
- macOS: [launchd](https://stackoverflow.com/questions/132955/how-do-i-set-a-task-to-run-every-so-often)
|
||||||
- Windows: [task scheduler](https://active-directory-wp.com/docs/Usage/How_to_add_a_cron_job_on_Windows/Scheduled_tasks_and_cron_jobs_on_Windows/index.html), [other options](https://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron)
|
- Windows: [task scheduler](https://active-directory-wp.com/docs/Usage/How_to_add_a_cron_job_on_Windows/Scheduled_tasks_and_cron_jobs_on_Windows/index.html), [other options](https://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron)
|
||||||
- any OS: use a process manager like [pm2](https://pm2.keymetrics.io/docs/usage/restart-strategies/)
|
- any OS: use a process manager like [pm2](https://pm2.keymetrics.io/docs/usage/restart-strategies/)
|
||||||
|
- Docker Compose `command: bash -c "node epic-games; node prime-gaming; node gog; echo sleeping; sleep 1d"` additionally add `restart: unless-stopped` to it.
|
||||||
|
|
||||||
TODO: ~~add some server-mode where the script just keeps running and claims games e.g. every day.~~
|
TODO: ~~add some server-mode where the script just keeps running and claims games e.g. every day.~~
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue