appstore-1panel/apps/mysql/8.0.37/docker-compose.yml
renovate[bot] 455f6b884a
chore(deps): update mysql docker tag (#1341)
* chore(deps): update mysql docker tag

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2024-05-06 11:42:30 +08:00

25 lines
600 B
YAML

services:
mysql:
image: mysql:8.0.37
container_name: ${CONTAINER_NAME}
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3306
volumes:
- ./data/:/var/lib/mysql
- ./conf/my.cnf:/etc/my.cnf
- ./log:/var/log/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
createdBy: "Apps"
command:
- --default-authentication-plugin=mysql_native_password
networks:
1panel-network:
external: true