docker-compose.multi-storage.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: '3.4'
  2. services:
  3. colossus-2:
  4. image: joystream/colossus:latest
  5. restart: on-failure
  6. build:
  7. context: .
  8. dockerfile: colossus.Dockerfile
  9. depends_on:
  10. - graphql-server
  11. volumes:
  12. - /data
  13. - /keystore
  14. - ${ACCOUNT_KEYFILE}:/joystream/storage-node-v2/keyfile
  15. ports:
  16. - '127.0.0.1:${COLOSSUS_PORT_2}:${COLOSSUS_PORT}'
  17. env_file:
  18. # relative to working directory where docker-compose was run from
  19. - .env
  20. environment:
  21. WORKER_ID: ${WORKER_ID}
  22. ACCOUNT_KEYFILE: /joystream/storage-node-v2/keyfile
  23. distributor-node-2:
  24. image: joystream/distributor-node
  25. restart: on-failure
  26. build:
  27. context: .
  28. dockerfile: distributor-node.Dockerfile
  29. depends_on:
  30. - graphql-server
  31. volumes:
  32. - /data
  33. - /cache
  34. ports:
  35. - 127.0.0.1:${DISTRIBUTOR_PORT_2}:3334
  36. environment:
  37. JOYSTREAM_DISTRIBUTOR__ENDPOINTS__QUERY_NODE: http://${QUERY_NODE_HOST}/graphql
  38. JOYSTREAM_DISTRIBUTOR__KEYS: ${KEYS}
  39. JOYSTREAM_DISTRIBUTOR__BUCKETS: ${BUCKETS}
  40. JOYSTREAM_DISTRIBUTOR__WORKER_ID: ${WORKER_ID}
  41. command: ['start']