docker-compose-arm64.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. version: "3"
  2. services:
  3. apisix:
  4. image: apache/apisix:2.9-alpine
  5. restart: always
  6. volumes:
  7. - ./apisix_log:/usr/local/apisix/logs
  8. - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
  9. depends_on:
  10. - etcd
  11. ports:
  12. - "9080:9080/tcp"
  13. - "9091:9091/tcp"
  14. - "9443:9443/tcp"
  15. - "9092:9092/tcp"
  16. networks:
  17. apisix:
  18. etcd:
  19. image: rancher/coreos-etcd:v3.4.13-arm64
  20. user: root
  21. restart: always
  22. volumes:
  23. - ./etcd_data:/etcd-data
  24. environment:
  25. ETCD_UNSUPPORTED_ARCH: "arm64"
  26. ETCD_ENABLE_V2: "true"
  27. ALLOW_NONE_AUTHENTICATION: "yes"
  28. ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
  29. ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
  30. ports:
  31. - "2379:2379/tcp"
  32. networks:
  33. apisix:
  34. web1:
  35. image: nginx:1.19.10-alpine
  36. restart: always
  37. volumes:
  38. - ./upstream/web1.conf:/etc/nginx/nginx.conf
  39. ports:
  40. - "9081:80/tcp"
  41. environment:
  42. - NGINX_PORT=80
  43. networks:
  44. apisix:
  45. web2:
  46. image: nginx:1.19.10-alpine
  47. restart: always
  48. volumes:
  49. - ./upstream/web2.conf:/etc/nginx/nginx.conf
  50. ports:
  51. - "9082:80/tcp"
  52. environment:
  53. - NGINX_PORT=80
  54. networks:
  55. apisix:
  56. networks:
  57. apisix:
  58. driver: bridge