Files
fn-serverless/docs/operating/databases/mysql.md
Travis Reeder 9cc12b4b12 Remove iron...
2017-05-18 18:59:34 +00:00

589 B

Oracle Functions using Postgres

Let's presuppose you don't have even a MySQL DB ready.

1. Let's start a MySQL instance:

docker run --name func-mysql \
        -e MYSQL_DATABASE=funcs -e MYSQL_USER=funcy -e MYSQL_PASSWORD=funcypass -d mysql

For more configuration options, see docker mysql docs.

2. Now let's start Functions connecting to our new mysql instance

docker run --rm --privileged --link "iron-mysql:mysql" \
    -e "DB_URL=mysql://funcy:funcypass@tcp(mysql:3306)/funcs" \
    -it -p 8080:8080 treeder/functions