Skip to content

Instantly share code, notes, and snippets.

@drajathasan
Created August 12, 2023 10:14
Show Gist options
  • Save drajathasan/87348a14430b85f76892563c79afb801 to your computer and use it in GitHub Desktop.
Save drajathasan/87348a14430b85f76892563c79afb801 to your computer and use it in GitHub Desktop.
docker composer mysql 8
version: "3.7"
services:
db8:
image: mysql:8.0.32
container_name: db8
env_file:
- db_default.env
command: --sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION --max_allowed_packet=1024M --log_bin_trust_function_creators=1
volumes:
- "./dbdata8:/var/lib/mysql"
ports:
- "3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment