docker-compose-arm64.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. networks:
  16. apisix:
  17. etcd:
  18. image: rancher/coreos-etcd:v3.4.13-arm64
  19. user: root
  20. restart: always
  21. volumes:
  22. - ./etcd_data:/etcd-data
  23. environment:
  24. ETCD_UNSUPPORTED_ARCH: "arm64"
  25. ETCD_ENABLE_V2: "true"
  26. ALLOW_NONE_AUTHENTICATION: "yes"
  27. ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
  28. ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
  29. ports:
  30. - "2379:2379/tcp"
  31. networks:
  32. apisix:
  33. web1:
  34. image: nginx:1.19.10-alpine
  35. restart: always
  36. volumes:
  37. - ./upstream/web1.conf:/etc/nginx/nginx.conf
  38. ports:
  39. - "9081:80/tcp"
  40. environment:
  41. - NGINX_PORT=80
  42. networks:
  43. apisix:
  44. web2:
  45. image: nginx:1.19.10-alpine
  46. restart: always
  47. volumes:
  48. - ./upstream/web2.conf:/etc/nginx/nginx.conf
  49. ports:
  50. - "9082:80/tcp"
  51. environment:
  52. - NGINX_PORT=80
  53. networks:
  54. apisix:
  55. networks:
  56. apisix:
  57. driver: bridge