Changeset View
Changeset View
Standalone View
Standalone View
docker/docker-compose.yml
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | volumes: | ||||
- "./services/swh-scheduler-worker/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-scheduler-worker/entrypoint.sh:/entrypoint.sh:ro" | ||||
# Graph storage | # Graph storage | ||||
swh-storage-db: | swh-storage-db: | ||||
image: postgres:12 | image: postgres:12 | ||||
env_file: | env_file: | ||||
- ./env/storage-db.env | - ./env/storage-db.env | ||||
environment: | |||||
# unset PGHOST as db service crashes otherwise | |||||
PGHOST: | |||||
# unset POSTGRES_DB: we're handling db creation ourselves in the backend | |||||
# service entrypoint | |||||
POSTGRES_DB: | |||||
swh-storage: | swh-storage: | ||||
image: swh/stack | image: swh/stack | ||||
build: ./ | build: ./ | ||||
ports: | ports: | ||||
- 5002:5002 | - 5002:5002 | ||||
depends_on: | depends_on: | ||||
- swh-storage-db | - swh-storage-db | ||||
- swh-objstorage | - swh-objstorage | ||||
- kafka | - kafka | ||||
env_file: | env_file: | ||||
- ./env/common_python.env | - ./env/common_python.env | ||||
- ./env/storage-db.env | - ./env/storage.env | ||||
environment: | environment: | ||||
SWH_CONFIG_FILENAME: /storage.yml | SWH_CONFIG_FILENAME: /storage.yml | ||||
STORAGE_BACKEND: postgresql | STORAGE_BACKEND: postgresql | ||||
entrypoint: /entrypoint.sh | entrypoint: /entrypoint.sh | ||||
volumes: | volumes: | ||||
- "./conf/storage.yml:/storage.yml:ro" | - "./conf/storage.yml:/storage.yml:ro" | ||||
- "./services/swh-storage/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-storage/entrypoint.sh:/entrypoint.sh:ro" | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |