Skip to content

Commit 336dad6

Browse files
authored
feat: add ghost in development mode (#3825)
* feat: add ghost in development mode * refactor(ghost-dev): change id
1 parent 4f9dca6 commit 336dad6

5 files changed

Lines changed: 71 additions & 1 deletion

File tree

apps/ghost-dev/config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "../schema.json",
3+
"name": "Ghost - Development",
4+
"port": 8225,
5+
"available": true,
6+
"exposable": true,
7+
"id": "ghost-dev",
8+
"tipi_version": 1,
9+
"version": "5.85.1",
10+
"categories": ["social", "media"],
11+
"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.",
12+
"short_desc": "Ghost - Turn your audience into a business.",
13+
"author": "TryGhost",
14+
"source": "https://github.com/TryGhost/Ghost",
15+
"website": "https://ghost.org",
16+
"form_fields": [],
17+
"supported_architectures": ["arm64", "amd64"]
18+
}
19+

apps/ghost-dev/docker-compose.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: "3.9"
2+
services:
3+
ghost-dev:
4+
container_name: ghost-dev
5+
image: ghost:5.85.1
6+
restart: unless-stopped
7+
volumes:
8+
- ${APP_DATA_DIR}:/var/lib/ghost/content
9+
environment:
10+
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
11+
- NODE_ENV=development
12+
ports:
13+
- ${APP_PORT}:2368
14+
networks:
15+
- tipi_main_network
16+
labels:
17+
# Main
18+
traefik.enable: true
19+
traefik.http.middlewares.ghost-dev-web-redirect.redirectscheme.scheme: https
20+
traefik.http.services.ghost-dev.loadbalancer.server.port: 2368
21+
# Web
22+
traefik.http.routers.ghost-dev-insecure.rule: Host(`${APP_DOMAIN}`)
23+
traefik.http.routers.ghost-dev-insecure.entrypoints: web
24+
traefik.http.routers.ghost-dev-insecure.service: ghost-dev
25+
traefik.http.routers.ghost-dev-insecure.middlewares: ghost-dev-web-redirect
26+
# Websecure
27+
traefik.http.routers.ghost-dev.rule: Host(`${APP_DOMAIN}`)
28+
traefik.http.routers.ghost-dev.entrypoints: websecure
29+
traefik.http.routers.ghost-dev.service: ghost-dev
30+
traefik.http.routers.ghost-dev.tls.certresolver: myresolver
31+
# Local domain
32+
traefik.http.routers.ghost-dev-local-insecure.rule: Host(`ghost-dev.${LOCAL_DOMAIN}`)
33+
traefik.http.routers.ghost-dev-local-insecure.entrypoints: web
34+
traefik.http.routers.ghost-dev-local-insecure.service: ghost-dev
35+
traefik.http.routers.ghost-dev-local-insecure.middlewares: ghost-dev-web-redirect
36+
# Local domain secure
37+
traefik.http.routers.ghost-dev-local.rule: Host(`ghost-dev.${LOCAL_DOMAIN}`)
38+
traefik.http.routers.ghost-dev-local.entrypoints: websecure
39+
traefik.http.routers.ghost-dev-local.service: ghost-dev
40+
traefik.http.routers.ghost-dev-local.tls: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Ghost - A painless self-hosted Blog
2+
3+
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.
4+
5+
![Screenshot](https://ghost.org/images/home/posts_hu3b21debb17401a2115316debd8fe8fa5_467056_2000x0_resize_q100_h2_box_3.webp)
6+
7+
### Getting started
8+
9+
After Ghost is installed, head over to https://yourdomain.com/ghost/ to finish setup and create the admin account!
10+
11+
> 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.

apps/ghost-dev/metadata/logo.jpg

41.7 KB
Loading

apps/ghost/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "../schema.json",
3-
"name": "Ghost",
3+
"name": "Ghost - Production",
44
"port": 8117,
55
"available": true,
66
"exposable": true,

0 commit comments

Comments
 (0)