码迷,mamicode.com
首页 > 数据库 > 详细

fnproject 数据库配置

时间:2017-10-04 23:54:49      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:mysql   blink   store   space   project   mil   def   ref   数据库   

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@ec2-117-21-174-214.compute-1.amazonaws.com: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(ec2-117-21-174-214.compute-1.amazonaws.com:3306)/funcs

More on MySQL

 

fnproject 数据库配置

标签:mysql   blink   store   space   project   mil   def   ref   数据库   

原文地址:http://www.cnblogs.com/rongfengliang/p/7627747.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!