mysql docker composer

Categories
version: "3.2"
services:
db:
image: docker.dgland.tech/docker/library/mysql:8.2
restart: always
cap_add:
- SYS_NICE # CAP_SYS_NICE
volumes:
- /usr/share/zoneinfo/Asia/Tehran:/etc/localtime
- ./mysql_data:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: tXBkZ4pSq6nCafRVEaWh