mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fn-prefix everything (#545)
* Fn-prefix everything Closes: #492 * Global replacement * missed one fn_
This commit is contained in:
committed by
Chad Arimura
parent
64997ed0fe
commit
5c68a88599
@@ -1,10 +1,10 @@
|
||||
|
||||
# Databases
|
||||
|
||||
We currently support the following databases and they are passed in via the `DB_URL` environment variable. For example:
|
||||
We currently support the following databases and they are passed in via the `FN_DB_URL` environment variable. For example:
|
||||
|
||||
```sh
|
||||
docker run -e "DB_URL=postgres://user:pass@localhost:6212/mydb" ...
|
||||
docker run -e "FN_DB_URL=postgres://user:pass@localhost:6212/mydb" ...
|
||||
```
|
||||
|
||||
## sqlite3 (default)
|
||||
@@ -12,7 +12,7 @@ docker run -e "DB_URL=postgres://user:pass@localhost:6212/mydb" ...
|
||||
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 ...`
|
||||
the directory on your host. eg: `docker run -v $PWD/data:/functions/data -e FN_DB_URL=sqlite3:///functions/data/fn.db ...`
|
||||
|
||||
## [PostgreSQL](http://www.postgresql.org/)
|
||||
|
||||
|
||||
@@ -15,6 +15,6 @@ For more configuration options, see [docker mysql docs](https://hub.docker.com/_
|
||||
|
||||
```
|
||||
docker run --rm --privileged --link "func-mysql:mysql" \
|
||||
-e "DB_URL=mysql://func:funcpass@tcp(mysql:3306)/funcs" \
|
||||
-e "FN_DB_URL=mysql://func:funcpass@tcp(mysql:3306)/funcs" \
|
||||
-it -p 8080:8080 fnproject/fn
|
||||
```
|
||||
|
||||
@@ -29,6 +29,6 @@ docker run -it --rm --link func-postgres:postgres postgres \
|
||||
|
||||
```sh
|
||||
docker run --rm --privileged --link "func-postgres:postgres" \
|
||||
-e "DB_URL=postgres://postgres:funcpass@postgres/funcs?sslmode=disable" \
|
||||
-e "FN_DB_URL=postgres://postgres:funcpass@postgres/funcs?sslmode=disable" \
|
||||
-it -p 8080:8080 fnproject/fnserver
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user