Skip to content

Instantly share code, notes, and snippets.

@mpern
Last active April 15, 2021 09:16
Show Gist options
  • Save mpern/94fee57f14e4dd962b52d5b6f0df3e11 to your computer and use it in GitHub Desktop.
Save mpern/94fee57f14e4dd962b52d5b6f0df3e11 to your computer and use it in GitHub Desktop.
Minimal docker-compose file to setup a MySQL server for SAP Commerce
version: '3.7'
services:
db:
image: mysql:5.7
restart: "unless-stopped"
ports:
- 3306: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=hybris
- MYSQL_PASSWORD=hybris
- MYSQL_DATABASE=hybris
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
- --max-allowed-packet=1GB
- --wait-timeout=43200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment