docker-compose.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. version: '3.4'
  2. services:
  3. distributor-node:
  4. image: node:14
  5. labels:
  6. co.elastic.logs/enabled: true
  7. co.elastic.logs/json.keys_under_root: true
  8. co.elastic.logs/json.overwrite_keys: true
  9. co.elastic.logs/json.add_error_key: true
  10. co.elastic.logs/json.expand_keys: true
  11. volumes:
  12. - type: bind
  13. source: ..
  14. target: /joystream
  15. - data:/data
  16. - cache:/cache
  17. - logs:/logs
  18. networks:
  19. - joystream
  20. ports:
  21. - 127.0.0.1:3334:3334
  22. working_dir: /joystream/distributor-node
  23. init: true
  24. entrypoint: ["./bin/run"]
  25. command: ["start", "./config/docker/distributor-dev.docker.yml"]
  26. # Ref: https://www.elastic.co/guide/en/elasticsearch/reference/7.13/docker.html
  27. elasticsearch:
  28. image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2
  29. container_name: elasticsearch
  30. environment:
  31. - discovery.type=single-node
  32. - bootstrap.memory_lock=true
  33. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  34. ulimits:
  35. memlock:
  36. soft: -1
  37. hard: -1
  38. volumes:
  39. - es-data:/usr/share/elasticsearch/data
  40. ports:
  41. - 127.0.0.1:9200:9200
  42. # Ref: https://www.elastic.co/guide/en/kibana/7.13/docker.html
  43. kibana:
  44. image: docker.elastic.co/kibana/kibana:7.13.2
  45. container_name: kibana
  46. ports:
  47. - 127.0.0.1:5601:5601
  48. environment:
  49. ELASTICSEARCH_HOSTS: http://elasticsearch:9200
  50. # Ref: https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html
  51. filebeat:
  52. user: root
  53. image: joystream/distributor-filebeat
  54. build:
  55. context: ./config/docker
  56. dockerfile: ./filebeat.Dockerfile
  57. volumes:
  58. - /var/run/docker.sock:/var/run/docker.sock:ro
  59. - logs:/logs
  60. volumes:
  61. es-data:
  62. driver: local
  63. logs:
  64. driver: local
  65. cache:
  66. driver: local
  67. data:
  68. driver: local
  69. # Join default joystream network (from root docker-compose)
  70. networks:
  71. joystream:
  72. external: true
  73. name: joystream_default