Sign inSign up

redserenity/ghost-b2

By redserenity

•Updated about 4 years ago

Ghost is a free and open source blogging platform written in JavaScript.

Image
0

231

redserenity/ghost-b2 repository overview

⁠Quick reference

⁠Ghost (w/ BackBlazeStorageAdapter)

logo

Ghost⁠ is a free and open source blogging platform written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications.

This image adds a custom storage adapter⁠ to Ghost to allow images/files/etc to be saved to the BackBlaze B2 cloud storage service.

⁠How to use this image

This image is base on the official Ghost image⁠. View details here⁠ to see how to use/run this image.

⁠How to use the BackBlaze B2 custom storage adapter

You need to add the following to your Ghost configuration:

{
  ..., // Existing configuration
  "storage": {
    "active": "ghost-storage-back-blaze",
    "ghost-storage-back-blaze": {
      "keyId": '<Your Key Id Here>',
      "secretKey": '<Your Secret Key Here>'
    }
  }
}

or through environment variables:

NameValue
storage__ghost-storage-back-blaze__keyId[your key id]
storage__ghost-storage-back-blaze__secretKey[your secret key]

See the README⁠ for more information

⁠Docker compose file

version: '3.5'

volumes:
  ghost_db:
  ghost_content:

services:
  mariadb:
    container_name: 'mariadb'
    image: mariadb:10
    restart: always
    volumes:
      - 'ghost_db:/var/lib/mysql'
    environment:
      - 'MARIADB_ROOT_PASSWORD=ghostDBpassword'
      - 'MARIADB_DATABASE=ghost'

  ghost:
    container_name: 'ghost'
    image: redserenity/ghost-b2:alpine
    restart: always
    ports:
      - '2368:2368'
    volumes:
      - 'ghost_content:/var/lib/ghost/content'
    environment:
      - 'database__client=mysql'
      - 'database__connection__host=mariadb'
      - 'database__connection__user=root'
      - 'database__connection__password=ghostDBpassword'
      - 'database__connection__database=ghost'
      - 'url=http://localhost:8080'
      - 'storage__active=ghost-storage-back-blaze'
      - 'storage__ghost-storage-back-blaze__keyId=<your key id>'
      - 'storage__ghost-storage-back-blaze__secretKey=<your secret key>'

Tag summary

Content type

Image

Digest

sha256:ca8c4c27d…

Size

116.6 MB

Last updated

about 4 years ago

docker pull redserenity/ghost-b2:alpine