dashboard-compose.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # 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. #
  17. version: "3"
  18. services:
  19. dashboard:
  20. image: "apache/apisix-dashboard:${APISIX_DASHBOARD_VERSION}"
  21. restart: always
  22. volumes:
  23. - ../example/dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro
  24. depends_on:
  25. - etcd
  26. ports:
  27. - "9000:9000/tcp"
  28. networks:
  29. - apisix
  30. etcd:
  31. image: bitnami/etcd:3.4.9
  32. user: root
  33. restart: always
  34. volumes:
  35. - ../example/etcd_data:/etcd_data
  36. environment:
  37. ETCD_DATA_DIR: /etcd_data
  38. ETCD_ENABLE_V2: "true"
  39. ALLOW_NONE_AUTHENTICATION: "yes"
  40. ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
  41. ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
  42. ports:
  43. - "2379:2379/tcp"
  44. networks:
  45. - apisix
  46. networks:
  47. apisix:
  48. driver: bridge