INTRODUCTION
Hello folks,
I am glad to be part of the ghost community.
Unfortunately I am stuck with the configuration of my ghost installation and I hope that you can give me some advices to fix my problem.
-
What is the problem?
“Latest Post”-, “RSS FEED”- and “HOME”-Link (Footer) are redirecting to https://localhost:2368 - i want them to redirect to my site. -
What’s your URL?
https://www.dataku.de -
What version of Ghost are you using?
Ghost-CLI version: 1.7.1
Ghost Version (at /var/lib/ghost): 1.22.2 -
What configuration?
I am using a full supported docker environment with nginx, docker-gen, letsencrypt, ghost and maria db.
My .env file for the ghost environment is as followed:
# .env file to set up your ghost site
#
# Network name
#
# Your container app must use a network conencted to your webproxy
# https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
#
NETWORK=webproxy
#
# Database Container configuration
# We recommend MySQL or MariaDB - please update docker-compose file if needed.
#
CONTAINER_DB_NAME=db
# Path to store your database
DB_PATH=/path/to/your/local/database/folder
# Root password for your database
MYSQL_ROOT_PASSWORD=root_password
# Database name, user and password for your ghost
MYSQL_DATABASE=database_name
MYSQL_USER=user_name
MYSQL_PASSWORD=user_password
#
# Ghost Container configuration
#
CONTAINER_GHOST_NAME=ghost
# Path to store your ghost files
GHOST_CORE=/path/to/your/ghost/core/files
GHOST_CONTENT=/path/to/your/ghost/content
# Table prefix
GHOST_TABLE_PREFIX=ghost_
#help Your domain (or domains)
DOMAINS=dataku.de,www.dataku.de
# Your email for Let's Encrypt register
LETSENCRYPT_EMAIL=your_email@domain.com
# You complete site url
SITE_URL=https://www.dataku.de
# Environment Status (production, development)
STATUS=production
My docker compose file is as followed:
version: '3'
services:
db:
container_name: ${CONTAINER_DB_NAME}
image: mariadb:latest
restart: unless-stopped
volumes:
- ${DB_PATH}:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ghost:
depends_on:
- db
container_name: ${CONTAINER_GHOST_NAME}
image: ghost:latest
restart: unless-stopped
volumes:
- ${GHOST_CORE}:/var/www/html
- ${GHOST_CONTENT}:/var/www/html/ghost/content
environment:
GHOST_DB_HOST: ${CONTAINER_DB_NAME}:3306
GHOST_DB_NAME: ${MYSQL_DATABASE}
GHOST_DB_USER: ${MYSQL_USER}
GHOST_DB_PASSWORD: ${MYSQL_PASSWORD}
GHOST_TABLE_PREFIX: ${GHOST_TABLE_PREFIX}
VIRTUAL_HOST: ${DOMAINS}
LETSENCRYPT_HOST: ${DOMAINS}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
GHOST_URL: ${SITE_URL}
NODE_ENV: ${STATUS}
networks:
default:
external:
name: ${NETWORK}
-
What browser?
In any browser (chrome, firefox, safari) -
What steps could someone else take to reproduce the issue you’re having?
Please follow the instructions to setup your nginx-proxy with letsencrypt environment (you will find in these repositories a full instruction for setup):
After finishing the nginx-proxy setup for docker, please follow these instructions for setup your blog software with ghost and maria db: