diff --git a/docker-compose.storage-replica.yml b/docker-compose.storage-replica.yml index c5e6b1e..533cf3f 100644 --- a/docker-compose.storage-replica.yml +++ b/docker-compose.storage-replica.yml @@ -1,50 +1,51 @@ version: '2' services: # override web app to use the replica swh-web: environment: SWH_CONFIG_FILENAME: /web-replica.yml volumes: - "./conf/web-replica.yml:/web-replica.yml:ro" # create a dedicated db for the replica swh-storage-replica-db: image: postgres:11 env_file: - ./env/storage-db-replica.env environment: # unset PGHOST as db service crashes otherwise PGHOST: # and an RPC server swh-storage-replica: - build: ./ image: swh/stack - entrypoint: /swh-storage/entrypoint.sh + build: ./ depends_on: - swh-storage-replica-db - swh-objstorage env_file: - ./env/storage-db-replica.env environment: SWH_CONFIG_FILENAME: /storage-replica.yml + entrypoint: /entrypoint.sh volumes: - "./conf/storage-replica.yml:/storage-replica.yml:ro" + - "./services/swh-storage/entrypoint.sh:/entrypoint.sh:ro" # and the background process that keeps the replica in sync with the # main graph swh-storage-replica-replayer: - build: ./ image: swh/stack - entrypoint: /entrypoint.sh + build: ./ depends_on: - swh-storage-replica-db - swh-objstorage env_file: - ./env/storage-db-replica.env environment: SWH_CONFIG_FILENAME: /storage-replica.yml + entrypoint: /entrypoint.sh volumes: - - "./services/swh-storage-replayer/entrypoint.sh:/entrypoint.sh:ro" - "./conf/storage-replica.yml:/storage-replica.yml:ro" + - "./services/swh-storage-replayer/entrypoint.sh:/entrypoint.sh:ro"