I can’t invite staff because ghost tell me to configure mail service (direct mail no works…)
I go on the container and i open the terminal:
i use ghost cli for configurate the email service with my gmail credentials
after this, the comand ghost restart doesn’t work because im the root user.
so, i switch my user to node user, but i have another error:
so, at this point, i restart the docker container, but after this comand, the website return me a 502 error.
when i go to check the config.production.json file i see two difference:
the port was 2368 now is 2369, the host ip was 0.0.0.0 now is 127.0.0.1…
so, after this change im not able to use ghost again, i need to create another container!
This is because you mapped the ports with your command -p 80:2368 this forwards your host machines port 80 to the containers port 2368 - so unless you have another instance running, there will not be a Ghost server listening on my-server-address.com:2368, it should just be my-server-address.com
i use ghost cli for configurate the email service with my gmail credentials
after this, the comand ghost restart doesn’t work because im the root user.
so, i switch my user to node user, but i have another error:
As far as I understand the docker image is supposed to be configured with environment variables, I may be wrong, but you should check with them how you’re supposed to configure mail.
Fabien this my-server-adress.com:2368 doesnt work because i used command to set port 80, but if i use the standard comand without change port, i dont see difference, i see a big 502 error…
So, i followed the ghost tutorial for configure email with ghost cli but i can’t find where and how configure docker env variables
so, i dont use ghost cli if i’m using docker? i dont know docker and i dont know were are the ghost’ env variable for docker… i know that existe a config.production.json file with this information… but this can be edit by ghost cli, but i change this values, docker stop working