Skip to content

Instantly share code, notes, and snippets.

@azanium
Last active February 2, 2023 13:07
Show Gist options
  • Save azanium/88d4389ef22ff3dbb37fea0a58af098c to your computer and use it in GitHub Desktop.
Save azanium/88d4389ef22ff3dbb37fea0a58af098c to your computer and use it in GitHub Desktop.
docker-compose.mysql.yml
version: '3'
services:
db:
image: mysql:8.0
cap_add:
- SYS_NICE
restart: always
environment:
- MYSQL_DATABASE=db
- MYSQL_ROOT_PASSWORD=password
ports:
- '3306:3306'
volumes:
- db:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
db:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment