docker-compose.yaml 847 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: "3"
  2. services:
  3. apisix:
  4. image: "apache/apisix:${APISIX_DOCKER_TAG}"
  5. restart: always
  6. volumes:
  7. - ../example/apisix_log:/usr/local/apisix/logs
  8. - ../example/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: bitnami/etcd:3.4.9
  19. user: root
  20. restart: always
  21. volumes:
  22. - ../example/etcd_data:/etcd_data
  23. environment:
  24. ETCD_DATA_DIR: /etcd_data
  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. networks:
  34. apisix:
  35. driver: bridge