[gelöst] Ghost CMS - Die Website ist nicht erreichbar

Du hast Probleme mit Deinem eMail-Programm, Webbrowser oder Textprogramm? Dein Lieblingsprogramm streikt?
Antworten
AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

[gelöst] Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 01.10.2022 10:01:45

Hallo Forum,

Ghost CMS möchte ich ausprobieren.

https://ghost.org/
Bild

Ghost soll mit podman-compose genutzt werden.

docker-homelab/compose-files-standalone/ghostfolio/docker-compose.yaml
https://github.com/cbirkenbeul/docker-h ... mpose.yaml

Mein compose.yml sieht wie folgt aus:

compose.yml

Code: Alles auswählen

---
version: '3.7'
services:
  ghostfolio-app:
    image: ghostfolio/ghostfolio:1.197.0
    container_name: ghostfolio-app
    restart: unless-stopped
    environment:
      DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@ghostfolio-db:5432/ghostfolio-db?sslmode=prefer
      REDIS_HOST: 'ghostfolio-redis'
      REDIS_PORT: '6379'
      ACCESS_TOKEN_SALT: ${GHOSTFOLIO_ACCESS_TOKEN}
      JWT_SECRET_KEY: ${GHOSTFOLIO_JWT_SECRET_KEY}
      PORT: 3333
      COMPOSE_PROJECT_NAME: ghostfolio
      HOST: 0.0.0.0
    ports:
      - 3333:3333

  ghostfolio-db:
    image: postgres:14
    container_name: ghostfolio-db
    restart: unless-stopped
    environment:
      POSTGRES_DB: ghostfolio-db
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    volumes:
      - ./postgres:/var/lib/postgresql/data

  ghostfolio-redis:
    image: redis:alpine
    container_name: ghostfolio-redis
    restart: unless-stopped
Mit

Code: Alles auswählen

podman-compose up -d
kann ich die Container erfolgreich laden.

Prüfung:

Code: Alles auswählen

podman ps 
CONTAINER ID  IMAGE                                    COMMAND          CREATED         STATUS                     PORTS                   NAMES
a993f062644e  docker.io/ghostfolio/ghostfolio:1.197.0  yarn start:prod  18 minutes ago  Up Less than a second ago  0.0.0.0:3333->3333/tcp  ghostfolio-app
931fa3545a84  docker.io/library/redis:alpine           redis-server     18 minutes ago  Up 8 seconds ago                                   ghostfolio-redis
Im Browser aufgerufen

Code: Alles auswählen

https://192.168.178.64:3333/
Die Website ist nicht erreichbarVerbindung wurde zurückgesetzt.
Was habe ich falsch gemacht?
Ich vermute eine podman Netzwerkproblem, wie gehe ich bei der Fehlersuche vor?

MfG
AxelMD


Es wird Debian 11 mit

Code: Alles auswählen

podman version && podman-compose version
Client:       Podman Engine
Version:      4.2.1
API Version:  4.2.1
Go Version:   go1.19
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64
['podman', '--version', '']
using podman version: 4.2.1
podman-composer version  1.0.3
podman --version 
podman version 4.2.1
exit code: 0

genutzt.


Für mich die Initialblogs:
Ghost vs WordPress (Sep 2022): Der Kampf der Open-Source-Frameworks
https://ecommerce-platforms.com/de/arti ... -wordpress

viewtopic.php?t=184842#p1309817

Demosite für Ghost, Daniel Schier
https://blog.while-true-do.io/podman-compose/

Edit: 3. Okt. 2022
Professional Ghost Themes free
https://ghost.org/themes/?category=free
Zuletzt geändert von AxelMD am 03.10.2022 10:27:37, insgesamt 7-mal geändert.

JTH
Moderator
Beiträge: 3023
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: Ghost CMS - Die Website ist nicht erreichbar

Beitrag von JTH » 01.10.2022 10:22:39

AxelMD hat geschrieben: ↑ zum Beitrag ↑
01.10.2022 10:01:45
Im Browser aufgerufen

Code: Alles auswählen

https://192.168.178.64:3333/
Die Website ist nicht erreichbarVerbindung wurde zurückgesetzt.
Was habe ich falsch gemacht?
Mal ohne https, mit http versucht?
Manchmal bekannt als Just (another) Terminal Hacker.

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 01.10.2022 10:32:04

Mal ohne https, mit http versucht?
Ja, das hatte ich, jedoch ohne Erfolg.

podman Netzwerk

Code: Alles auswählen

podman network ls
NETWORK ID    NAME           DRIVER
cd6e81b598ff  ghost_default  bridge
ffccf65c1638  grav_default   bridge
4d273a87ffbc  nextcloud-net  bridge
2f259bab93aa  podman         bridge
Die podman grav Website ist folgt zu erreichen:

Code: Alles auswählen

http://192.168.178.64:8181/de
compose.yml für grav

Code: Alles auswählen

---
version: "2.1"
services:
  grav:
    image: lscr.io/linuxserver/grav:latest
    container_name: grav
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /home/axelmd/grav/config:/config
    ports:
      - 8080:80
    restart: unless-stopped

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 01.10.2022 11:01:41

ghost

Meldungen:

Code: Alles auswählen

podman-compose up -d
['podman', '--version', '']
using podman version: 4.2.1
** excluding:  set()
['podman', 'network', 'exists', 'ghost_default']
['podman', 'network', 'create', '--label', 'io.podman.compose.project=ghost', '--label', 'com.docker.compose.project=ghost', 'ghost_default']
['podman', 'network', 'exists', 'ghost_default']
podman run --name=ghostfolio-app -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=ghost --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=ghost --label com.docker.compose.project.working_dir=/home/axelmd/ghost --label com.docker.compose.project.config_files=compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=ghostfolio-app -e DATABASE_URL=postgresql://:@ghostfolio-db:5432/ghostfolio-db?sslmode=prefer -e REDIS_HOST=ghostfolio-redis -e REDIS_PORT=6379 -e ACCESS_TOKEN_SALT= -e JWT_SECRET_KEY= -e PORT=3333 -e COMPOSE_PROJECT_NAME=ghostfolio -e HOST=0.0.0.0 --net ghost_default --network-alias ghostfolio-app -p 3333:3333 --restart unless-stopped ghostfolio/ghostfolio:1.197.0
84391202f356c653cf0ef993ff0367bb7e55eed3dd89491f3556230f1ee8517a
exit code: 0
['podman', 'network', 'exists', 'ghost_default']
podman run --name=ghostfolio-db -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=ghost --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=ghost --label com.docker.compose.project.working_dir=/home/axelmd/ghost --label com.docker.compose.project.config_files=compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=ghostfolio-db -e POSTGRES_DB=ghostfolio-db -e POSTGRES_USER= -e POSTGRES_PASSWORD= -v /home/axelmd/ghost/postgres:/var/lib/postgresql/data --net ghost_default --network-alias ghostfolio-db --restart unless-stopped postgres:14
0b25e719bef8fe9b3df9238b7608779f7af877c905355e847633796a5e619fe3
exit code: 0
['podman', 'network', 'exists', 'ghost_default']
podman run --name=ghostfolio-redis -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=ghost --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=ghost --label com.docker.compose.project.working_dir=/home/zxz/ghost --label com.docker.compose.project.config_files=compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=ghostfolio-redis --net ghost_default --network-alias ghostfolio-redis --restart unless-stopped redis:alpine
b71f5e07de3c06e4e0ade27c244c0c1bbb9e55615fa3156517a57cab5ae62cce
exit code: 0

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 01.10.2022 11:15:42

Mit folgendem compose.yml File ist ghost erreichbar
Quelle: https://hub.docker.com/_/ghost

Code: Alles auswählen

version: '3.1'

services:

  ghost:
    image: ghost:4-alpine
    restart: always
    ports:
      - 8080:2368
    environment:
      # see https://ghost.org/docs/config/#configuration-options
      database__client: mysql
      database__connection__host: db
      database__connection__user: root
      database__connection__password: example
      database__connection__database: ghost
      # this url value is just an example, and is likely wrong for your environment!
      url: http://localhost:8080
      # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
      #NODE_ENV: development

  db:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
Auf Webbrowser:

Code: Alles auswählen

http://192.168.178.64:8080/
Es interessiert mich, warum in der ersten compose.yml die ghost Website nicht erreichbar ist.
Weiß das jemand?

Verwendete Imageversion:

image: ghostfolio/ghostfolio:1.197.0 -- Pulls10K+
https://hub.docker.com/r/ghostfolio/ghostfolio
https://github.com/ghostfolio/ghostfolio
https://ghostfol.io
https://ghostfol.io/de/blog/2021/07/hallo-ghostfolio

ghostfolio/ghostfolio hat nichts mit ghost cms zu tun!

image: ghost:4-alpine -- 100M+ 1.6K
https://hub.docker.com/_/ghost

Wie kann das image: ghostfolio/ghostfolio:1.197.0 verwendet werden, was ist an der zugehörigen compose.yml falsch?

Welche Auswirkung hat version: '3.7' und version: '3.1' in den jeweiligen compose.yml Dateien?
Zuletzt geändert von AxelMD am 02.10.2022 12:34:12, insgesamt 2-mal geändert.

Benutzeravatar
bluestar
Beiträge: 2346
Registriert: 26.10.2004 11:16:34
Wohnort: Rhein-Main-Gebiet

Re: Ghost CMS - Die Website ist nicht erreichbar

Beitrag von bluestar » 02.10.2022 09:26:49

AxelMD hat geschrieben: ↑ zum Beitrag ↑
01.10.2022 11:15:42
Wie kann das image: ghostfolio/ghostfolio:1.197.0 verwendet werden, was ist an der zugehörigen compose.yml falsch?
Vermutlich hast du vergessen eine .env Datei zu erstellen.
AxelMD hat geschrieben: ↑ zum Beitrag ↑
01.10.2022 10:01:45
Prüfung:

Code: Alles auswählen

podman ps 
CONTAINER ID  IMAGE                                    COMMAND          CREATED         STATUS                     PORTS                   NAMES
a993f062644e  docker.io/ghostfolio/ghostfolio:1.197.0  yarn start:prod  18 minutes ago  Up Less than a second ago  0.0.0.0:3333->3333/tcp  ghostfolio-app
931fa3545a84  docker.io/library/redis:alpine           redis-server     18 minutes ago  Up 8 seconds ago                                   ghostfolio-redis
Da läuft kein Postgres Datenbank Container, vermutlich auch ein Ergebnis der fehlenden .env Datei.

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [gelöst] Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 02.10.2022 09:30:13

OT
https://github.com/ghostfolio/ghostfoli ... ag/1.201.0
1.201.0 Latest @dtslvr dtslvr released this 15 hours ago

Evtl. auch ein Fehler im image.

Die env Datei habe gar nicht erstellt, bzw. gar nicht berücksichtigt, weil
ich auf dem völlig falschen Weg war, ein Irrlauf.

Das ghostfolio hat nichts mit ghost_cms zu tun.

ghostfolio erscheint mit trotzdem interessant.

In diesem Thread werde ich mich damit nicht weiter beschäftigen.

OT-Ende



How to install Ghost
The fastest way to get started is to set up a site on Ghost(Pro). If you're running a self-hosted instance, we strongly recommend an Ubuntu server with at least 1GB of memory to run Ghost.
https://ghost.org/docs/install/

Macht es überhaupt Sinn ghost_cms als Container zu nutzen?

Benutzeravatar
bluestar
Beiträge: 2346
Registriert: 26.10.2004 11:16:34
Wohnort: Rhein-Main-Gebiet

Re: [gelöst] Ghost CMS - Die Website ist nicht erreichbar

Beitrag von bluestar » 02.10.2022 12:25:31

AxelMD hat geschrieben: ↑ zum Beitrag ↑
02.10.2022 09:30:13
OT
Warum stellst du Fragen, wenn du die Antworten danach als OT kennzeichnest?

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [gelöst] Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 02.10.2022 12:35:28

Weil ich Ghost_CMS mit Ghostfolio verwechselt habe.

Du hattest dich auch auf Ghostfolio image: ghostfolio/ghostfolio:1.197.0 bezogen.

Threadüberschrift hier: Ghost CMS - Die Website ist nicht erreichbar

Benutzeravatar
bluestar
Beiträge: 2346
Registriert: 26.10.2004 11:16:34
Wohnort: Rhein-Main-Gebiet

Re: [gelöst] Ghost CMS - Die Website ist nicht erreichbar

Beitrag von bluestar » 02.10.2022 13:37:10

AxelMD hat geschrieben: ↑ zum Beitrag ↑
02.10.2022 12:35:28
Du hattest dich auch auf Ghostfolio image: ghostfolio/ghostfolio:1.197.0 bezogen.
Ich habe mich auf deine Frage bezogen:
AxelMD hat geschrieben: ↑ zum Beitrag ↑
01.10.2022 11:15:42
Wie kann das image: ghostfolio/ghostfolio:1.197.0 verwendet werden, was ist an der zugehörigen compose.yml falsch?
Diese Frage - respektive die Beantwortung - dient im übrigen deinem generellen Verständnis von docker-compose bzw. podman-compose, da bei vielen Projekten neben einer compose.yml auch noch eine entsprechende .env Datei benötigt wird.

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [gelöst] Ghost CMS - Die Website ist nicht erreichbar

Beitrag von AxelMD » 02.10.2022 13:45:33

Schon im Eröffnungsposting lag ich falsch.
Ghost_CMS wollte ich, habe aber schon das Ghostfolio verwandt.

Edit: 3. Okt. 2022

Ghost 5 der erforderliche compose.yml:

Code: Alles auswählen

version: '3.1'

services:

  ghost:
    image: ghost:5-alpine
    restart: always
    ports:
      - 8181:2368
    environment:
      # see https://ghost.org/docs/config/#configuration-options
      database__client: mysql
      database__connection__host: db
      database__connection__user: root
      database__connection__password: example
      database__connection__database: ghost
      # this url value is just an example, and is likely wrong for your environment!
      url: http://192.168.178.64:8181
      # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
      #NODE_ENV: development

  db:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
Aufruf mit

Code: Alles auswählen

http://192.168.178.64:8181/

Antworten