mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
@@ -1,10 +1,10 @@
|
||||
|
||||
# Databases
|
||||
|
||||
We currently support the following databases and they are passed in via the `DB` environment variable. For example:
|
||||
We currently support the following databases and they are passed in via the `DB_URL` environment variable. For example:
|
||||
|
||||
```sh
|
||||
docker run -e "DB=postgres://user:pass@localhost:6212/mydb" ...
|
||||
docker run -e "DB_URL=postgres://user:pass@localhost:6212/mydb" ...
|
||||
```
|
||||
|
||||
## [Bolt](https://github.com/boltdb/bolt) (default)
|
||||
@@ -12,7 +12,7 @@ docker run -e "DB=postgres://user:pass@localhost:6212/mydb" ...
|
||||
URL: `bolt:///functions/data/functions.db`
|
||||
|
||||
Bolt 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=bolt:///functions/data/bolt.db ...`
|
||||
the directory on your host. eg: `docker run -v $PWD/data:/functions/data -e DB_URL=bolt:///functions/data/bolt.db ...`
|
||||
|
||||
[More on BoltDB](databases/boltdb.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user