docker-compose-release.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. apisix:
  20. image: "apache/apisix:${APISIX_DOCKER_TAG}"
  21. restart: always
  22. volumes:
  23. - ./apisix_log:/usr/local/apisix/logs
  24. - ./apisix_conf/release/config.yaml:/usr/local/apisix/conf/config.yaml:ro
  25. depends_on:
  26. - etcd
  27. ports:
  28. - "9180:9180/tcp"
  29. - "9080:9080/tcp"
  30. - "9091:9091/tcp"
  31. - "9443:9443/tcp"
  32. networks:
  33. - apisix
  34. etcd:
  35. image: bitnami/etcd:3.4.9
  36. user: root
  37. restart: always
  38. volumes:
  39. - ../example/etcd_data:/etcd_data
  40. environment:
  41. ETCD_DATA_DIR: /etcd_data
  42. ETCD_ENABLE_V2: "true"
  43. ALLOW_NONE_AUTHENTICATION: "yes"
  44. ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
  45. ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
  46. ports:
  47. - "2379:2379/tcp"
  48. networks:
  49. - apisix
  50. networks:
  51. apisix:
  52. driver: bridge