docker-compose-test.yaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #
  2. # Copyright (C) 2020 Prasoon Joshi
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. version: "3"
  17. services:
  18. niosx:
  19. image: milliarchives/niosx:0.5.0
  20. container_name: niosx-service
  21. environment:
  22. - APPLICATION_SECRET
  23. - DEV_MODE
  24. - BULK_UPLOAD_KEY
  25. networks:
  26. - niosx-test-nw
  27. ports:
  28. - "9101:9000"
  29. depends_on:
  30. - cassandra
  31. - elasticsearch
  32. restart: always
  33. # janusgraph:
  34. # image: docker.io/janusgraph/janusgraph:0.6.0
  35. # container_name: janusgraph-test
  36. # environment:
  37. # JANUS_PROPS_TEMPLATE: cql-es
  38. # janusgraph.storage.backend: cql
  39. # janusgraph.storage.hostname: jce-cassandra
  40. # janusgraph.index.search.hostname: jce-elastic
  41. # janusgraph.cluster.max-partitions: 2
  42. # # janusgraph.graph.graphname:
  43. # #gremlinserver.graphs.ConfigurationManagementGraph: conf/janusgraph-configurationManagement.properties
  44. # # ports:
  45. # # - "8182"
  46. # networks:
  47. # - niosx-test-nw
  48. # healthcheck:
  49. # test: ["CMD", "bin/gremlin.sh", "-e", "scripts/remote-connect.groovy"]
  50. # interval: 10s
  51. # timeout: 30s
  52. # retries: 3
  53. cassandra:
  54. # build:
  55. # context: cassandra/Dockerfile
  56. # dockerfile: Dockerfile
  57. image: cassandra:3.11.11
  58. container_name: jce-cassandra
  59. environment:
  60. - MAX_HEAP_SIZE=4G
  61. - HEAP_NEWSIZE=512M
  62. # - "CASSANDRA_START_RPC=true"
  63. # ports:
  64. # - "9042"
  65. # - "9160"
  66. networks:
  67. - niosx-test-nw
  68. elasticsearch:
  69. image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
  70. container_name: jce-elastic
  71. environment:
  72. - "ES_JAVA_OPTS=-Xms1g -Xmx1g" #-Xms512m -Xmx512m"
  73. - "http.host=0.0.0.0"
  74. - "network.host=0.0.0.0" # all available network interfaces
  75. - "transport.host=0.0.0.0"
  76. - "cluster.name=docker-cluster"
  77. - "xpack.security.enabled=false"
  78. - "discovery.zen.minimum_master_nodes=1"
  79. # ports:
  80. # - "9200"
  81. networks:
  82. - niosx-test-nw
  83. networks:
  84. niosx-test-nw:
  85. volumes:
  86. janusgraph-default-data: