docker-compose-arm64.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.15.0-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:3.1.0-debian
  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. - "9180:9180/tcp"
  38. - "9080:9080/tcp"
  39. - "9091:9091/tcp"
  40. - "9443:9443/tcp"
  41. - "9092:9092/tcp"
  42. networks:
  43. apisix:
  44. etcd:
  45. image: rancher/coreos-etcd:v3.4.15-arm64
  46. user: root
  47. restart: always
  48. volumes:
  49. - ./etcd_data:/etcd-data
  50. environment:
  51. ETCD_UNSUPPORTED_ARCH: "arm64"
  52. ETCD_ENABLE_V2: "true"
  53. ALLOW_NONE_AUTHENTICATION: "yes"
  54. ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
  55. ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
  56. ETCD_DATA_DIR: "/etcd-data"
  57. ports:
  58. - "2379:2379/tcp"
  59. networks:
  60. apisix:
  61. web1:
  62. image: nginx:1.19.10-alpine
  63. restart: always
  64. volumes:
  65. - ./upstream/web1.conf:/etc/nginx/nginx.conf
  66. ports:
  67. - "9081:80/tcp"
  68. environment:
  69. - NGINX_PORT=80
  70. networks:
  71. apisix:
  72. web2:
  73. image: nginx:1.19.10-alpine
  74. restart: always
  75. volumes:
  76. - ./upstream/web2.conf:/etc/nginx/nginx.conf
  77. ports:
  78. - "9082:80/tcp"
  79. environment:
  80. - NGINX_PORT=80
  81. networks:
  82. apisix:
  83. networks:
  84. apisix:
  85. driver: bridge