chassis-agent/docker-compose-mysql.yml

21 lines
423 B
YAML
Raw Normal View History

2023-05-29 16:10:41 +08:00
version: "3"
services:
mysql:
image: mysql:8
container_name: 'mysql'
hostname: 'mysql'
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
environment:
2023-06-30 03:57:10 +08:00
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-mysql3306}
2023-05-29 16:10:41 +08:00
- MYSQL_USER=user
2023-06-30 03:57:10 +08:00
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-mysql3306}
2023-05-29 16:10:41 +08:00
restart: always
volumes:
mysql_data:
driver: local