-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.scrubber.yml
More file actions
34 lines (33 loc) · 968 Bytes
/
compose.scrubber.yml
File metadata and controls
34 lines (33 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
swh-scrubber-db:
image: postgres:16
environment:
POSTGRES_DB: swh-scrubber
POSTGRES_PASSWORD: testpassword
swh-scrubber:
# this service is a kind of scrubber "worker"; it will setup the db, then
# wait forever; scrubbing session must then be created and executed via
# `docker compose exec' commands
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
command: init
depends_on:
- prometheus-statsd-exporter
- swh-scrubber-db
- swh-storage
- nginx
environment:
SWH_LOG_LEVELS: warning
env_file:
- ./env/common_python.env
- ./env/scrubber.env
volumes:
- "./conf/scrubber.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-scrubber/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
deploy:
replicas: 0
healthcheck:
test: "test -f scrubber_db_initialized"
interval: 5s
timeout: 5s
retries: 20