Add working configuration for Ghost!
This commit is contained in:
@@ -4,34 +4,50 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
app:
|
ghost-app:
|
||||||
container_name: ghost-app
|
container_name: $APP_NAME
|
||||||
image: ghost:bookworm
|
image: ghost:bookworm
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8068:2368
|
- 8368:2368
|
||||||
|
depends_on:
|
||||||
|
ghost-db:
|
||||||
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
# see https://ghost.org/docs/config/#configuration-options
|
# see https://ghost.org/docs/config/#configuration-options
|
||||||
database__client: mysql
|
database__client: mysql
|
||||||
database__connection__host: db
|
database__connection__host: $DB_NAME
|
||||||
database__connection__user: root
|
database__connection__user: root
|
||||||
database__connection__password: example
|
database__connection__password: $DB_ROOT_PASSWORD
|
||||||
database__connection__database: ghost
|
database__connection__database: $DB_DATABASE
|
||||||
# this url value is just an example, and is likely wrong for your environment!
|
url: $URL
|
||||||
#url: http://localhost:8080
|
NODE_ENV: $MODE
|
||||||
# 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
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../../Volumes/Ghost/ghost:/var/lib/ghost/content
|
- ../../Volumes/Ghost/ghost:/var/lib/ghost/content
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: $CPU
|
||||||
|
memory: $MEM
|
||||||
|
|
||||||
db:
|
ghost-db:
|
||||||
container_name: ghost-db
|
container_name: $DB_NAME
|
||||||
image: mariadb:lts
|
image: mariadb:lts
|
||||||
restart: always
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: example
|
MARIADB_ROOT_PASSWORD: $DB_ROOT_PASSWORD
|
||||||
|
MARIADB_AUTO_UPGRADE: $DB_AUTO_UPGRADE
|
||||||
volumes:
|
volumes:
|
||||||
- ../../Volumes/Ghost/db:/var/lib/mysql
|
- ../../Volumes/Ghost/db:/var/lib/mysql
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: $CPU_DB
|
||||||
|
memory: $MEM_DB
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
ghost:
|
ghost:
|
||||||
|
|||||||
@@ -9,22 +9,26 @@ COMPOSE_BAKE=true
|
|||||||
|
|
||||||
## Ghost ##
|
## Ghost ##
|
||||||
|
|
||||||
# TBD/TODO
|
APP_NAME=ghost-app
|
||||||
|
|
||||||
|
URL='http://localhost:8368'
|
||||||
|
|
||||||
|
# Controls the Node.js runtime. Null is production.
|
||||||
|
MODE=
|
||||||
|
#MODE=development
|
||||||
|
|
||||||
## End Ghost ##
|
## End Ghost ##
|
||||||
|
|
||||||
|
|
||||||
## Database ##
|
## Database ##
|
||||||
|
|
||||||
MARIADB_DATABASE='ghost'
|
DB_NAME=ghost-db
|
||||||
|
|
||||||
#MARIADB_USER='db_user'
|
DB_DATABASE=ghost
|
||||||
#MARIADB_PASSWORD='database_password'
|
DB_ROOT_PASSWORD='db_root_password'
|
||||||
|
|
||||||
MARIADB_ROOT_PASSWORD='db_root_password'
|
|
||||||
|
|
||||||
# Comment this if you do not want MariaDB to run upgrade scripts on new versions.
|
# Comment this if you do not want MariaDB to run upgrade scripts on new versions.
|
||||||
MARIADB_AUTO_UPGRADE=1
|
DB_AUTO_UPGRADE=1
|
||||||
|
|
||||||
## End Database ##
|
## End Database ##
|
||||||
|
|
||||||
@@ -32,27 +36,27 @@ MARIADB_AUTO_UPGRADE=1
|
|||||||
## Performance ##
|
## Performance ##
|
||||||
|
|
||||||
# Standard Minimum
|
# Standard Minimum
|
||||||
#GHOST_CPU=1.00
|
#CPU=0.10
|
||||||
#GHOST_MEM=2.00G
|
#MEM=0.50G
|
||||||
#GHOST_CPU_DB=1.00
|
#CPU_DB=1.00
|
||||||
#GHOST_MEM_DB=1.00G
|
#MEM_DB=1.00G
|
||||||
|
|
||||||
# Standard Recommended
|
# Standard Recommended
|
||||||
#GHOST_CPU=1.00
|
#CPU=1.00
|
||||||
#GHOST_MEM=4.00G
|
#MEM=1.00G
|
||||||
#GHOST_CPU_DB=1.00
|
#CPU_DB=1.00
|
||||||
#GHOST_MEM_DB=0.50G
|
#MEM_DB=0.50G
|
||||||
|
|
||||||
# Tested Minimum
|
# Tested Minimum - TBD
|
||||||
#GHOST_CPU=0.35
|
#CPU=0.35
|
||||||
#GHOST_MEM=0.35G
|
#MEM=0.25G
|
||||||
#GHOST_CPU_DB=0.15
|
#CPU_DB=0.15
|
||||||
#GHOST_MEM_DB=0.15G
|
#MEM_DB=0.25G
|
||||||
|
|
||||||
# Tested Recommended
|
# Tested Recommended - TBD
|
||||||
## GHOST_CPU=0.50
|
CPU=0.85
|
||||||
## GHOST_MEM=0.50G
|
MEM=0.65G
|
||||||
## GHOST_CPU_DB=0.25
|
CPU_DB=0.15
|
||||||
## GHOST_MEM_DB=0.25G
|
MEM_DB=0.35G
|
||||||
|
|
||||||
## End Performance ##
|
## End Performance ##
|
||||||
|
|||||||
Reference in New Issue
Block a user