Created
November 19, 2017 07:49
-
-
Save toanalien/c37f8edcfa0f314f56156de35ebe26a6 to your computer and use it in GitHub Desktop.
ghost docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.1' | |
| services: | |
| ghost: | |
| image: ghost:1-alpine | |
| restart: always | |
| ports: | |
| - 8080:2368 | |
| environment: | |
| # 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 | |
| VIRTUAL_HOST: toan.biz, www.toan.biz | |
| links: | |
| - db:db | |
| volumes: | |
| - ~/toan.biz/ghost:/var/lib/ghost/content | |
| network_mode: bridge | |
| db: | |
| image: mysql:5.7 | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: example | |
| volumes: | |
| - ~/toan.biz/mysql:/var/lib/mysql | |
| network_mode: bridge | |
| expose: | |
| - "3306" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment