打开docker-compose.yml
添加
killsb-social-apigw:
image: ${REGISTRY:-killsbdapr}/killsb-social-apigw:${TAG:-latest}
build:
context: .
dockerfile: src/ApiGateways/SocialEnvoy/Dockerfile
在路径src\ApiGateways\SocialEnvoy
添加envoy.yaml
admin:
access_log_path: "/dev/null"
address:
socket_address:
address: 0.0.0.0
port_value: 8001
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
codec_type: auto
stat_prefix: ingress_http
route_config:
name: eshop_backend_route
virtual_hosts:
- name: eshop_backend
domains:
- "*"
cors:
allow_origin_string_match: