fnproject 数据库配置
Posted rongfengliang-荣锋亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fnproject 数据库配置相关的知识,希望对你有一定的参考价值。
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:[email protected]: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:[email protected]:6212/db982398
Use a PostgreSQL database. If you‘re using Functions in production, you should probably start here.
MySQL
URL: mysql://user123:[email protected](ec2-117-21-174-214.compute-1.amazonaws.com:3306)/funcs
以上是关于fnproject 数据库配置的主要内容,如果未能解决你的问题,请参考以下文章