apisix-docker
apisix-docker copied to clipboard
试图运行单机模式报错: failed to fetch /usr/local/apisix/conf/apisix.yaml attributes: cannot obtain information from file '/usr/local/apisix/conf/apisix.yaml': No such file or directory
❯ cat config.yaml
apisix:
enable_admin: false
config_center: yaml
❯ cat docker-compose.yml
version: "3"
services:
apisix:
image: apache/apisix:latest
restart: always
volumes:
- /var/log/apisix:/usr/local/apisix/logs
- ./config.yaml:/usr/local/apisix/conf/config.yaml:ro
- /mnt/www:/mnt/www:ro
network_mode: host
❯ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
apache/apisix latest 80ffdeac32a1 4 weeks ago 376MB
❯ docker-compose up
Starting apisix_apisix_1 ... done
Attaching to apisix_apisix_1
apisix_1 | /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init
apisix_1 | /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
apisix_1 | nginx: [error] [lua] config_yaml.lua:72: read_apisix_yaml(): failed to fetch /usr/local/apisix/conf/apisix.yaml attributes: cannot obtain information from file '/usr/local/apisix/conf/apisix.yaml': No such file or directory
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
@usrtax Do you still have this issue?
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.