From b6efaac950d1c00de3dcba952065c430e81dcb70 Mon Sep 17 00:00:00 2001 From: Shubhendra Kushwaha Date: Mon, 22 Jul 2024 23:12:06 +0530 Subject: [PATCH] chore: add config file for standalone mode in examples --- example/apisix_conf/config-standalone.yaml | 25 ++++++++++++++++++++++ example/docker-compose-standalone.yml | 1 + 2 files changed, 26 insertions(+) create mode 100644 example/apisix_conf/config-standalone.yaml diff --git a/example/apisix_conf/config-standalone.yaml b/example/apisix_conf/config-standalone.yaml new file mode 100644 index 00000000..e8a963f6 --- /dev/null +++ b/example/apisix_conf/config-standalone.yaml @@ -0,0 +1,25 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +apisix: + node_listen: 9080 # APISIX listening port + enable_ipv6: false + +deployment: + role: data_plane + role_data_plane: + config_provider: yaml diff --git a/example/docker-compose-standalone.yml b/example/docker-compose-standalone.yml index 039873f9..01303cff 100644 --- a/example/docker-compose-standalone.yml +++ b/example/docker-compose-standalone.yml @@ -23,6 +23,7 @@ services: restart: always volumes: - ./apisix_conf/apisix-standalone.yaml:/usr/local/apisix/conf/apisix.yaml:ro + - ./apisix_conf/config-standalone.yaml:/usr/local/apisix/conf/config.yaml:ro environment: - APISIX_STAND_ALONE=true ports: