1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ghost + MySQLを Dockerで動かす

Posted at

mysqlのポートが使われていたので変更している。

docker-compose.yml
version: '3.1'

services:

  ghost-compose:
    image: ghost
    restart: always
    volumes:
      - ./ghost:/var/lib/ghost/content
    ports:
      - 3001:2368
    environment:
      database__client: mysql
      database__connection__host: ghost-db
      database__connection__port: 3303
      database__connection__user: root
      database__connection__password: password
      database__connection__database: ghost

  ghost-db:
    image: mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_TCP_PORT: 3303
    volumes:
      - ./mysql:/var/lib/mysql
    ports:
      - 3303:3306
    expose:
      - 3303
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?