docker-compose.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. version: "3"
  17. services:
  18. kdc:
  19. build:
  20. context: docker-image/docker-krb5
  21. dockerfile: Dockerfile-krb5
  22. args:
  23. buildno: 1
  24. hostname: kdc
  25. volumes:
  26. - ../..:/opt/hadoop
  27. kms:
  28. image: apache/hadoop:${HADOOP_VERSION}
  29. ports:
  30. - 9600:9600
  31. env_file:
  32. - ./docker-config
  33. command: ["hadoop", "kms"]
  34. datanode:
  35. image: apache/hadoop-runner
  36. volumes:
  37. - ../..:/opt/hadoop
  38. ports:
  39. - 9864
  40. command: ["/opt/hadoop/bin/ozone","datanode"]
  41. env_file:
  42. - docker-config
  43. om:
  44. image: apache/hadoop-runner
  45. hostname: om
  46. volumes:
  47. - ../..:/opt/hadoop
  48. ports:
  49. - 9874:9874
  50. environment:
  51. ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION
  52. WAITFOR: scm:9876
  53. env_file:
  54. - docker-config
  55. command: ["/opt/hadoop/bin/ozone","om"]
  56. s3g:
  57. image: apache/hadoop-runner
  58. hostname: s3g
  59. volumes:
  60. - ../..:/opt/hadoop
  61. ports:
  62. - 9878:9878
  63. env_file:
  64. - ./docker-config
  65. command: ["/opt/hadoop/bin/ozone","s3g"]
  66. scm:
  67. image: apache/hadoop-runner
  68. hostname: scm
  69. volumes:
  70. - ../..:/opt/hadoop
  71. ports:
  72. - 9876:9876
  73. env_file:
  74. - docker-config
  75. environment:
  76. ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION
  77. command: ["/opt/hadoop/bin/ozone","scm"]