Skip to content

Instantly share code, notes, and snippets.

@valekar
Created January 10, 2020 10:17
Show Gist options
  • Select an option

  • Save valekar/f7e8ed97d44da20f112f78323a55ec8e to your computer and use it in GitHub Desktop.

Select an option

Save valekar/f7e8ed97d44da20f112f78323a55ec8e to your computer and use it in GitHub Desktop.

Revisions

  1. valekar created this gist Jan 10, 2020.
    29 changes: 29 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    version: "3.7"
    services:
    db:
    image: mysql:5.7
    restart: "unless-stopped"
    ports:
    - 3309:3306
    # uncomment the volume mount to import .sql files
    # during database initalization
    # volumes:
    # - type: bind
    # source: ./db-dump
    # target: /docker-entrypoint-initdb.d
    environment:
    - MYSQL_RANDOM_ROOT_PASSWORD=true
    - MYSQL_USER=node_user
    - MYSQL_PASSWORD=node_user
    - MYSQL_DATABASE=practice
    - MYSQL_ROOT_PASSWORD=node_user
    command:
    - --character-set-server=utf8
    - --collation-server=utf8_general_ci
    - --innodb-flush-log-at-trx-commit=0
    - --transaction-isolation=READ-COMMITTED
    - --innodb-flush-method=O_DIRECT
    - --skip-log-bin
    - --innodb-buffer-pool-size=2G
    - --innodb-log-file-size=256M
    - --skip-ssl