dokku-md-plugin icon indicating copy to clipboard operation
dokku-md-plugin copied to clipboard

`linked` line not seen when deploying NodeJS app

Open martin-hewitt opened this issue 10 years ago • 1 comments

I'm deploying a NodeJS app (Ghost) on dokku, and want to use the MariaDB plugin to provide persistent storage for it.

The plugin installs fine, and creates the right docker instance, which I can connect to from the host system.

The problem comes when I deploy my node app. In the docs, I don't see the following snippet when pushing up to dokku:

remote: -----> Deploying foo ...
remote: 
remote: -----> App foo linked to mariadb/foo database
remote:        DATABASE_URL=...

Because I don't get that link, I think my Node app is struggling to connect across containers, so I get a database timeout when it attempts to reach the MariaDB container.

Do I need to add some metadata to my node app to tell dokku that it's looking for a database container?

martin-hewitt avatar Mar 06 '14 15:03 martin-hewitt

You can manually enter your database informations in the configuration file of Ghost DB user is root Password is indicated in dokku mariadb:info foo DB host is 172.17.42.1 DB name is db DB port is also indicated in dokku mariadb:info foo

Kloadut avatar Apr 04 '14 21:04 Kloadut