shaftspanner

Ghost Docker compose

Sep 22nd, 2023
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.18 KB | Source Code | 0 0
  1.  ghost:
  2.     image: ghost:latest
  3.     container_name: ghost
  4.     restart: always
  5.     depends_on:
  6.      - ghost-db
  7.     ports:
  8.      - 58099:2368
  9.     environment:
  10.      # see https://ghost.org/docs/config/#configuration-options
  11.       database__client: mysql
  12.       database__connection__host: ghost-db
  13.       database__connection__user: root
  14.       database__connection__password: my_mysql_password
  15.       database__connection__database: ghost
  16.       # this url value is just an example, and is likely wrong for your environment!
  17.       url: https://www.myurl.com
  18.       #NODE_ENV: development
  19.       # Email Settings
  20.       mail__options__auth__pass: my_gmail_app_password
  21.       mail__options__auth__user: [email protected]
  22.       mail__options__host: smtp.gmail.com
  23.       mail__options__port: 587
  24.       mail__options__secure: false
  25.       mail__options__service: Gmail
  26.       mail__options__transport: SMTP
  27.     volumes:
  28.      - /datastore/configs/ghost/ghost:/var/lib/ghost/content
  29.  
  30.   ghost-db:
  31.     image: mysql:8.0
  32.     container_name: ghost-db
  33.     restart: always
  34.     environment:
  35.       MYSQL_ROOT_PASSWORD: my_mysql_password
  36.     volumes:
  37.      - /datastore/configs/ghost/db:/var/lib/mysql
Advertisement
Add Comment
Please, Sign In to add comment