docker-compose-arm64.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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:2.9-alpine
  21. restart: always
  22. volumes:
  23. - ./apisix_log:/usr/local/apisix/logs
  24. - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
  25. depends_on:
  26. - etcd
  27. ports:
  28. - "9080:9080/tcp"
  29. - "9091:9091/tcp"
  30. - "9443:9443/tcp"
  31. - "9092:9092/tcp"
  32. networks:
  33. apisix:
  34. etcd:
  35. image: rancher/coreos-etcd:v3.4.13-arm64
  36. user: root
  37. restart: always
  38. volumes:
  39. - ./etcd_data:/etcd-data
  40. environment:
  41. ETCD_UNSUPPORTED_ARCH: "arm64"
  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. web1:
  51. image: nginx:1.19.10-alpine
  52. restart: always
  53. volumes:
  54. - ./upstream/web1.conf:/etc/nginx/nginx.conf
  55. ports:
  56. - "9081:80/tcp"
  57. environment:
  58. - NGINX_PORT=80
  59. networks:
  60. apisix:
  61. web2:
  62. image: nginx:1.19.10-alpine
  63. restart: always
  64. volumes:
  65. - ./upstream/web2.conf:/etc/nginx/nginx.conf
  66. ports:
  67. - "9082:80/tcp"
  68. environment:
  69. - NGINX_PORT=80
  70. networks:
  71. apisix:
  72. networks:
  73. apisix:
  74. driver: bridge