• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Setting up Ghost with Docker on Plesk Onyx 17.8

captainhook

Basic Pleskian
Hi,
I have managed to setup Ghost with Docker, however I am trying to customise the setup to use MySQL, Mailgun, and a few other config changes.

According to Ghost's documentation - Config:

You're able to start Ghost using environment variables which match the name and case of each config option like this:

Code:
url=http://ghost.local:2368 node index.js

For nested config options, you'd need to separate them with two underscores:

Code:
database__connection__host=mysql node index.js

So I have setup the following environment variables (Docker on Plesk requires environment variables to be upper case*):
Code:
DATABASE__CLIENT = mysql
DATABASE__CONNECTION__HOST = localhost
DATABASE__CONNECTION__PORT = 3306
DATABASE__CONNECTION__USER = username
DATABASE__CONNECTION__PASSWORD = password
DATABASE__CONNECTION__DATABASE = databasename


However I am still finding that it does not create anything in that database, nor does it throw any errors/warnings.
Can anyone advise?


* the error you will see if you use lower case letters is:
"The name of an environment variable can consist solely of uppercase letters, digits, and the underscore ('_'), and cannot begin with a digit."
 
I have just noticed the Ghost config documentation says:
"Env vars should be lowercase, we realise this is a little odd, it's a limitation of nconf, but they do work!", but Plesk's Docker implementation does not allow lowercase... so that's the issue.

If anyone has a workaround, please do share.
 
Back
Top