[GH-ISSUE #917] Question: How to set up scheduler: container in docker-compose.yml #3588

Closed
opened 2026-03-14 23:37:14 +03:00 by kerem · 4 comments
Owner

Originally created by @akhilleusuggo on GitHub (Jan 26, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/917

I'm not sure if it's bug or I'm missing something here.
Using docker-compose , rpi4

The singlefile is not working, I've seen that on other issue.
But the feature that pulls new links featured as example on the docker-compose.yml is not working.
github.com/ArchiveBox/ArchiveBox@663918a372/docker-compose.yml (L48)

docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.archivebox: 'scheduler'

Removing the scheduler doesn't work, since you end with multiple command sections. Tried this solution https://stackoverflow.com/questions/30063907/using-docker-compose-how-to-execute-multiple-commands but no luck.

PS: Maybe I'm just not catching the idea of it, since it seems that we're trying to run a separate container for the schedule feature.

Originally created by @akhilleusuggo on GitHub (Jan 26, 2022). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/917 I'm not sure if it's bug or I'm missing something here. Using docker-compose , rpi4 The singlefile is not working, I've seen that on other issue. But the feature that pulls new links featured as example on the docker-compose.yml is not working. https://github.com/ArchiveBox/ArchiveBox/blob/663918a37298d6b7617d1f36d346f95947c5bab2/docker-compose.yml#L48 ``` docker-compose up ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services.archivebox: 'scheduler' ``` Removing the `scheduler` doesn't work, since you end with multiple command sections. Tried this solution https://stackoverflow.com/questions/30063907/using-docker-compose-how-to-execute-multiple-commands but no luck. PS: Maybe I'm just not catching the idea of it, since it seems that we're trying to run a separate container for the schedule feature.
kerem 2026-03-14 23:37:14 +03:00
Author
Owner

@darkstar commented on GitHub (Jan 29, 2022):

Your indenting is incorrect. The scheduler tag should not be under archivebox but at the same level with it

<!-- gh-comment-id:1024894180 --> @darkstar commented on GitHub (Jan 29, 2022): Your indenting is incorrect. The `scheduler` tag should not be under `archivebox` but at the same level with it
Author
Owner

@akhilleusuggo commented on GitHub (Jan 29, 2022):

Do you mind an example? I'm still not getting it.
Maybe the docker-compose should be updated with your solution. Because the way it is now is not working.

<!-- gh-comment-id:1024995864 --> @akhilleusuggo commented on GitHub (Jan 29, 2022): Do you mind an example? I'm still not getting it. Maybe the docker-compose should be updated with your solution. Because the way it is now is not working.
Author
Owner

@darkstar commented on GitHub (Jan 30, 2022):

Your file is not confirming to the required YAML schema. It even tells you that it reads the scheduler tag as config option for services.archivebox, when instead it should be a separate service. So you should write it like this:

services:
  archivebox:
    ...
  scheduler:
    ...

instead of this

services:
  archivebox:
    ...
    scheduler:
    ...
<!-- gh-comment-id:1025147620 --> @darkstar commented on GitHub (Jan 30, 2022): Your file is not confirming to the required YAML schema. It even tells you that it reads the `scheduler` tag as config option for `services.archivebox`, when instead it should be a separate service. So you should write it like this: ``` services: archivebox: ... scheduler: ... ``` instead of this ``` services: archivebox: ... scheduler: ... ```
Author
Owner

@akhilleusuggo commented on GitHub (Jan 31, 2022):

Thank you!

<!-- gh-comment-id:1025270817 --> @akhilleusuggo commented on GitHub (Jan 31, 2022): Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#3588
No description provided.