docker-compose-arm64.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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-dashboard:
  20. image: apache/apisix-dashboard:2.13-alpine
  21. restart: always
  22. volumes:
  23. - ./dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
  24. ports:
  25. - "9000:9000"
  26. networks:
  27. apisix:
  28. apisix:
  29. image: apache/apisix:2.15.0-alpine
  30. restart: always
  31. volumes:
  32. - ./apisix_log:/usr/local/apisix/logs
  33. - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
  34. depends_on:
  35. - etcd
  36. ports:
  37. - "9080:9080/tcp"
  38. - "9091:9091/tcp"
  39. - "9443:9443/tcp"
  40. - "9092:9092/tcp"
  41. networks:
  42. apisix:
  43. etcd:
  44. image: rancher/coreos-etcd:v3.4.15-arm64
  45. user: root
  46. restart: always
  47. volumes:
  48. - ./etcd_data:/etcd-data
  49. environment:
  50. ETCD_UNSUPPORTED_ARCH: "arm64"
  51. ETCD_ENABLE_V2: "true"
  52. ALLOW_NONE_AUTHENTICATION: "yes"
  53. ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
  54. ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
  55. ETCD_DATA_DIR: "/etcd-data"
  56. ports:
  57. - "2379:2379/tcp"
  58. networks:
  59. apisix:
  60. web1:
  61. image: nginx:1.19.10-alpine
  62. restart: always
  63. volumes:
  64. - ./upstream/web1.conf:/etc/nginx/nginx.conf
  65. ports:
  66. - "9081:80/tcp"
  67. environment:
  68. - NGINX_PORT=80
  69. networks:
  70. apisix:
  71. web2:
  72. image: nginx:1.19.10-alpine
  73. restart: always
  74. volumes:
  75. - ./upstream/web2.conf:/etc/nginx/nginx.conf
  76. ports:
  77. - "9082:80/tcp"
  78. environment:
  79. - NGINX_PORT=80
  80. networks:
  81. apisix:
  82. networks:
  83. apisix:
  84. driver: bridge