File tree Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -17,36 +17,47 @@ services:
1717 container_name : apisix
1818 depends_on :
1919 - etcd
20+ entrypoint : ["/bin/sh"]
21+ command :
22+ - -c
23+ - |
24+ printf '%s\n' "$${APISIX_CONFIG_YAML}" > /usr/local/apisix/conf/config.yaml
25+ exec /docker-entrypoint.sh docker-start
2026 environment :
2127 APISIX_CONFIG_YAML : |
2228 deployment:
2329 role: traditional
2430 role_traditional:
2531 config_provider: etcd
32+ admin:
33+ # Demo only: open to all. Narrow CIDR in production.
34+ allow_admin:
35+ - 0.0.0.0/0
36+ admin_key:
37+ - name: admin
38+ key: edd1c9f034335f136f87ad84b625c8f1
39+ role: admin
40+ etcd:
41+ host:
42+ - "http://etcd:2379"
43+ prefix: "/apisix"
44+ timeout: 30
2645 apisix:
2746 node_listen: 9080
2847 enable_admin: true
29- # Demo only: open to all. Narrow CIDR in production.
30- allow_admin:
31- - 0.0.0.0/0
32- admin_key:
33- - name: admin
34- key: edd1c9f034335f136f87ad84b625c8f1
35- role: admin
3648 ssl:
3749 enable: true
3850 listen_port: 9443
39- etcd:
40- host:
41- - "http://etcd:2379"
42- prefix: "/apisix"
43- timeout: 30
4451 plugins:
4552 - cors
4653 - proxy-rewrite
4754 - request-id
4855 - server-info
49- plugin_attr: {}
56+ stream_plugins: []
57+ plugin_attr:
58+ server-info:
59+ report_interval: 60
60+ report_ttl: 3600
5061 nginx_config:
5162 error_log: logs/error.log
5263 worker_processes: auto
You can’t perform that action at this time.
0 commit comments