2024-01-11 09:43:08 +01:00
|
|
|
# This docker-compose file is for the screenshot-capture-tool service.
|
|
|
|
#
|
|
|
|
# It is a standalone daemon that captures screenshots of web pages, based
|
|
|
|
# on the domain database of Marginalia Search.
|
|
|
|
#
|
|
|
|
# It does not start the search engine itself.
|
|
|
|
#
|
|
|
|
|
2023-11-01 16:38:55 +01:00
|
|
|
x-svc: &service
|
|
|
|
env_file:
|
|
|
|
- "run/env/service.env"
|
|
|
|
volumes:
|
|
|
|
- conf:/wmsa/conf:ro
|
|
|
|
- data:/wmsa/data
|
|
|
|
- logs:/var/log/wmsa
|
|
|
|
networks:
|
|
|
|
- wmsa
|
|
|
|
services:
|
|
|
|
screenshot-capture-tool:
|
|
|
|
<<: *service
|
2023-11-16 21:12:55 +01:00
|
|
|
image: "marginalia/screenshot-capture-tool"
|
2023-11-01 16:38:55 +01:00
|
|
|
container_name: "screenshot-capture-tool"
|
|
|
|
networks:
|
|
|
|
- wmsa
|
|
|
|
- headlesschrome
|
|
|
|
depends_on:
|
|
|
|
- browserless
|
|
|
|
browserless:
|
|
|
|
<<: *service
|
|
|
|
image: "browserless/chrome"
|
|
|
|
container_name: "headlesschrome"
|
|
|
|
env_file:
|
|
|
|
- "run/env/browserless.env"
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
networks:
|
|
|
|
- wmsa
|
|
|
|
- headlesschrome
|
|
|
|
|
|
|
|
networks:
|
|
|
|
wmsa:
|
|
|
|
headlesschrome:
|
|
|
|
volumes:
|
|
|
|
logs:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: run/logs
|
|
|
|
conf:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: run/conf
|
|
|
|
data:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: run/data
|