> ## Content Index
> Fetch the complete content index at: https://ghost.wingersttv.co.uk/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ghost (Blog) Container
- URL: https://ghost.wingersttv.co.uk/ghost-blog-container/
- Published: 2025-04-22T15:54:34.000Z
- Updated: 2025-04-23T14:57:58.000Z
- Author: Wingers
- Tags: Containers, Docker

Getting this website off the ground has actually been somewhat of a thorn in my side, which is ironic as it's a fairly simple deployment to do in terms of containers.

I am assuming it's still part of the learning process, but I often find that it resets back to day 1 and loses all the stored data, its configuration and previously made posts. 

I'm not sure if I've missed something or if it's a fault with my larger setup, but it continues to elude me.

version: "3.8"

services:  
ghost:  
image: ghost:latest  
container\_name: ghost  
restart: unless-stopped  
ports:  
\- "2368:2368"  
environment:  
\- url= # Change to your domain or server IP  
\- database\_\_client=\*\*\*\*\*\*\*\*  
\- database\_\_connection\_\_host=\*\*\*\*\*\*\*\*  
\- database\_\_connection\_\_user=\*\*\*\*\*\*\*\*  
\- database\_\_connection\_\_password=\*\*\*\*\*\*\*\*  
\- database\_\_connection\_\_database=\*\*\*\*\*\*\*\*  
volumes:  
\- ghost-data:/var/lib/ghost/content  
depends\_on:  
\- db

db:  
image: mysql:latest  
container\_name: ghost-db  
restart: unless-stopped  
environment:  
\- MYSQL\_ROOT\_PASSWORD=\*\*\*\*\*\*\*\*  
\- MYSQL\_DATABASE=\*\*\*\*\*\*\*\*  
\- MYSQL\_USER=\*\*\*\*\*\*\*\*  
\- MYSQL\_PASSWORD=\*\*\*\*\*\*\*\*  
volumes:  
\- ghost-db:/var/lib/mysql

volumes:  
ghost-data:  
ghost-db: