Here is the docker Template to install Ghost CMS on aapanel. tested and working on Oracle ARM servers in cent os7 aapenel.
version: '3.1'
services:
ghost:
image: ghost:latest
restart: always
ports:
- 8001:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: ghost
database__connection__password: addnewpasswd
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: https://yourdomain.com
# 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:oracle
restart: always
environment:
MYSQL_ROOT_PASSWORD: addnewpasswd
MYSQL_USER: ghost
MYSQL_PASSWORD: addnewpasswd
MYSQL_DATABASE: ghost
volumes:
- ./data:/var/lib/mysql