Changeset View
Changeset View
Standalone View
Standalone View
docker/docker-compose.yml
Show First 20 Lines • Show All 491 Lines • ▼ Show 20 Lines | depends_on: | ||||
- swh-storage | - swh-storage | ||||
- swh-scheduler | - swh-scheduler | ||||
- swh-deposit | - swh-deposit | ||||
- amqp | - amqp | ||||
volumes: | volumes: | ||||
- "./conf/loader-opam.yml:/loader-opam.yml:ro" | - "./conf/loader-opam.yml:/loader-opam.yml:ro" | ||||
- "./services/swh-worker/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-worker/entrypoint.sh:/entrypoint.sh:ro" | ||||
# Indexer Celery workers | # Indexer workers | ||||
swh-indexer: | swh-indexer-worker-celery: | ||||
image: swh/stack | image: swh/stack | ||||
build: ./ | build: ./ | ||||
user: swh | user: swh | ||||
env_file: | env_file: | ||||
- ./env/common_python.env | - ./env/common_python.env | ||||
- ./env/indexers-db.env | - ./env/indexers-db.env | ||||
- ./env/indexers.env | - ./env/indexers.env | ||||
- ./env/workers.env | - ./env/workers.env | ||||
environment: | environment: | ||||
SWH_WORKER_INSTANCE: indexer | SWH_WORKER_INSTANCE: indexer | ||||
SWH_CONFIG_FILENAME: /indexer.yml | SWH_CONFIG_FILENAME: /indexer.yml | ||||
CONCURRENCY: 4 | CONCURRENCY: 4 | ||||
entrypoint: /entrypoint.sh | entrypoint: /entrypoint.sh | ||||
depends_on: | depends_on: | ||||
- swh-scheduler-runner | - swh-scheduler-runner | ||||
- swh-idx-storage | - swh-idx-storage | ||||
- swh-storage | - swh-storage | ||||
- swh-objstorage | - swh-objstorage | ||||
- amqp | - amqp | ||||
volumes: | volumes: | ||||
- "./conf/indexer.yml:/indexer.yml:ro" | - "./conf/indexer.yml:/indexer.yml:ro" | ||||
- "./services/swh-indexer-worker/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-indexer-worker-celery/entrypoint.sh:/entrypoint.sh:ro" | ||||
# Journal related | swh-indexer-worker-journal: | ||||
swh-indexer-journal-client: | |||||
image: swh/stack | image: swh/stack | ||||
build: ./ | build: ./ | ||||
entrypoint: /entrypoint.sh | user: swh | ||||
env_file: | env_file: | ||||
- ./env/common_python.env | - ./env/common_python.env | ||||
- ./env/indexers-db.env | |||||
- ./env/indexers.env | |||||
- ./env/workers.env | |||||
environment: | |||||
SWH_WORKER_INSTANCE: indexer | |||||
SWH_CONFIG_FILENAME: /indexer.yml | |||||
CONCURRENCY: 4 | |||||
entrypoint: /entrypoint.sh | |||||
depends_on: | depends_on: | ||||
kafka: | kafka: | ||||
condition: service_healthy | condition: service_healthy | ||||
swh-storage: | swh-storage: | ||||
condition: service_started | condition: service_started | ||||
swh-scheduler: | swh-idx-storage: | ||||
condition: service_started | |||||
swh-objstorage: | |||||
condition: service_started | condition: service_started | ||||
volumes: | volumes: | ||||
- "./conf/indexer_journal_client.yml:/etc/softwareheritage/indexer/journal_client.yml:ro" | - "./conf/indexer.yml:/indexer.yml:ro" | ||||
- "./services/swh-indexer-journal-client/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-indexer-worker-journal/entrypoint.sh:/entrypoint.sh:ro" | ||||
# Journal related | |||||
swh-scheduler-journal-client: | swh-scheduler-journal-client: | ||||
image: swh/stack | image: swh/stack | ||||
build: ./ | build: ./ | ||||
entrypoint: /entrypoint.sh | entrypoint: /entrypoint.sh | ||||
env_file: | env_file: | ||||
- ./env/common_python.env | - ./env/common_python.env | ||||
depends_on: | depends_on: | ||||
kafka: | kafka: | ||||
condition: service_healthy | condition: service_healthy | ||||
swh-scheduler: | swh-scheduler: | ||||
condition: service_started | condition: service_started | ||||
volumes: | volumes: | ||||
- "./conf/scheduler_journal_client.yml:/etc/softwareheritage/scheduler/journal_client.yml:ro" | - "./conf/scheduler_journal_client.yml:/etc/softwareheritage/scheduler/journal_client.yml:ro" | ||||
- "./services/swh-scheduler-journal-client/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-scheduler-journal-client/entrypoint.sh:/entrypoint.sh:ro" |