Skip to content

Instantly share code, notes, and snippets.

@M4R14
Last active May 12, 2019 14:13
Show Gist options
  • Select an option

  • Save M4R14/fec1c27c02cbfe0eca593cd291efc674 to your computer and use it in GitHub Desktop.

Select an option

Save M4R14/fec1c27c02cbfe0eca593cd291efc674 to your computer and use it in GitHub Desktop.
สร้าง Blog ส่วนตัวด้วย Ghost CMS - http://vachirawit.com/sraang-blog-swntawdwy/
# by default, the Ghost image will use SQLite (and thus requires no separate database container)
# we have used MySQL here merely for demonstration purposes (especially environment-variable-based configuration)
version: '3.1'
services:
ghost:
image: ghost:2-alpine
restart: always
ports:
- 80:2368
environment:
url: http://<ip-server>/
# see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment