feat: add ghost in development mode (#3825)

* feat: add ghost in development mode

* refactor(ghost-dev): change id
This commit is contained in:
Stavros 2024-06-18 20:49:55 +03:00 committed by GitHub
parent 4f9dca6be9
commit 336dad6fa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 71 additions and 1 deletions

View File

@ -0,0 +1,19 @@
{
"$schema": "../schema.json",
"name": "Ghost - Development",
"port": 8225,
"available": true,
"exposable": true,
"id": "ghost-dev",
"tipi_version": 1,
"version": "5.85.1",
"categories": ["social", "media"],
"description": "Ghost is a powerful app for new-media creators to publish, share, and grow a business around their content. It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members.",
"short_desc": "Ghost - Turn your audience into a business.",
"author": "TryGhost",
"source": "https://github.com/TryGhost/Ghost",
"website": "https://ghost.org",
"form_fields": [],
"supported_architectures": ["arm64", "amd64"]
}

View File

@ -0,0 +1,40 @@
version: "3.9"
services:
ghost-dev:
container_name: ghost-dev
image: ghost:5.85.1
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}:/var/lib/ghost/content
environment:
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
- NODE_ENV=development
ports:
- ${APP_PORT}:2368
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.ghost-dev-web-redirect.redirectscheme.scheme: https
traefik.http.services.ghost-dev.loadbalancer.server.port: 2368
# Web
traefik.http.routers.ghost-dev-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.ghost-dev-insecure.entrypoints: web
traefik.http.routers.ghost-dev-insecure.service: ghost-dev
traefik.http.routers.ghost-dev-insecure.middlewares: ghost-dev-web-redirect
# Websecure
traefik.http.routers.ghost-dev.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.ghost-dev.entrypoints: websecure
traefik.http.routers.ghost-dev.service: ghost-dev
traefik.http.routers.ghost-dev.tls.certresolver: myresolver
# Local domain
traefik.http.routers.ghost-dev-local-insecure.rule: Host(`ghost-dev.${LOCAL_DOMAIN}`)
traefik.http.routers.ghost-dev-local-insecure.entrypoints: web
traefik.http.routers.ghost-dev-local-insecure.service: ghost-dev
traefik.http.routers.ghost-dev-local-insecure.middlewares: ghost-dev-web-redirect
# Local domain secure
traefik.http.routers.ghost-dev-local.rule: Host(`ghost-dev.${LOCAL_DOMAIN}`)
traefik.http.routers.ghost-dev-local.entrypoints: websecure
traefik.http.routers.ghost-dev-local.service: ghost-dev
traefik.http.routers.ghost-dev-local.tls: true

View File

@ -0,0 +1,11 @@
## Ghost - A painless self-hosted Blog
Ghost is a powerful app for new-media creators to publish, share, and grow a business around their content. It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members.
![Screenshot](https://ghost.org/images/home/posts_hu3b21debb17401a2115316debd8fe8fa5_467056_2000x0_resize_q100_h2_box_3.webp)
### Getting started
After Ghost is installed, head over to https://yourdomain.com/ghost/ to finish setup and create the admin account!
> Warning ⚠️: The app runs in development mode and it is ment for home usage **not** for exposing in the internet, please use the Ghost - Production app for production environments.

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -1,6 +1,6 @@
{
"$schema": "../schema.json",
"name": "Ghost",
"name": "Ghost - Production",
"port": 8117,
"available": true,
"exposable": true,