You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "addhww (via GitHub)" <gi...@apache.org> on 2023/04/25 09:23:23 UTC

[GitHub] [apisix] addhww opened a new issue, #9368: help request:

addhww opened a new issue, #9368:
URL: https://github.com/apache/apisix/issues/9368

   ### Description
   
   I run apisix with below command,
   `docker run -d --name apache-apisix -p 9080:9080 -p 9180:9180 -e APISIX_STAND_ALONE=true apache/apisix:3.2.0-centos`
   edit the /usr/local/apisix/conf/apisix.yaml file
   ```
   routes:
     -
       id: httpbin
       uri: /*
       upstream:
         nodes:
           "httpbin.org": 1
         type: roundrobin
       plugin_config_id: 1
   
   plugin_configs:
     -
       id: 1
       plugins:
         response-rewrite:
           body: "Hello APISIX\n"
       desc: "response-rewrite"
   #END
   ```
   I send request to http://127.0.0.1:9080/ and the response is right.
   But after I restart the container with below command
   `docker restart apache-apisix`
   the request http://127.0.0.1:9080/ get "404 Route Not Found", and the apisix.yaml has no routes
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] leslie-tsang commented on issue #9368: help request: apisix.yaml can not save

Posted by "leslie-tsang (via GitHub)" <gi...@apache.org>.
leslie-tsang commented on issue #9368:
URL: https://github.com/apache/apisix/issues/9368#issuecomment-1649206847

   Considered solved. Feel free to reopen it if needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] shreemaan-abhishek commented on issue #9368: help request: apisix.yaml can not save

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #9368:
URL: https://github.com/apache/apisix/issues/9368#issuecomment-1521622979

   You can add volumes to your docker container using the `-v` flag. Like so:
   `docker run -d -v /path/to/apisix.yaml:/usr/local/apisix/conf/apisix.yaml:ro --name apache-apisix -p 9080:9080 -p 9180:9180 -e APISIX_STAND_ALONE=true apache/apisix:3.2.0-centos`
   
   Using this method, you don't have to exec into the container to configure resources like routes and upstreams. You can also use the apisix-docker example and configure it to your requirement.
   
   https://github.com/apache/apisix-docker/blob/821b4744a003cdff5eff75c2a1896ec0eaa1089a/example/docker-compose.yml#L35


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] leslie-tsang closed issue #9368: help request: apisix.yaml can not save

Posted by "leslie-tsang (via GitHub)" <gi...@apache.org>.
leslie-tsang closed issue #9368: help request: apisix.yaml can not save
URL: https://github.com/apache/apisix/issues/9368


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org