Files
ai_site/gateway/docker-compose.yml
2026-07-31 10:31:17 +08:00

29 lines
762 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# APISIX 声明式网关Docker 启动后使用)
# 前置:启动 Docker Desktop并保证宿主机 platform:8888 / ai:8001 已运行
services:
etcd:
image: bitnami/etcd:3.5
environment:
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: http://etcd:2379
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
volumes:
- etcd_data:/bitnami/etcd
apisix:
image: apache/apisix:3.11.0-debian
depends_on:
- etcd
ports:
- "9080:9080" # HTTP 入口
- "9180:9180" # Admin API
volumes:
- ./apisix/config.yaml:/usr/local/apisix/conf/config.yaml:ro
- ./apisix/apisix.yaml:/usr/local/apisix/conf/apisix.yaml:ro
environment:
TZ: Asia/Shanghai
volumes:
etcd_data: