fn project 数据库配置
  ehrZuhofWJiC 30天前 28 0
url
Databases

We currently support the following databases and they are passed in via the DB_URL environment variable. For example:

docker run -e "DB_URL=postgres://user:pass@localhost:6212/mydb" ...

   sqlite3 (default)

URL: sqlite3:///functions/data/functions.db

SQLite3 is an embedded database which stores to disk. If you want to use this, be sure you don't lose the data directory by mounting the directory on your host. eg: docker run -v $PWD/data:/functions/data -e DB_URL=sqlite3:///functions/data/fn.db ...

   PostgreSQL

URL: postgres://user123:pass456@:6212/db982398

Use a PostgreSQL database. If you're using Functions in production, you should probably start here.

More on PostgreSQL

   MySQL

URL: mysql://user123:pass456@tcp(:3306)/funcs

More on MySQL

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 30天前 0

暂无评论

ehrZuhofWJiC