增加新服务

This commit is contained in:
BryantHe committed 2023-05-29 16:10:41 +08:00
1 parent 0010b16233
commit 9e1401a651
5 files changed
+75

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
version: "3"
services:
mysql:
image: mysql:8
container_name: 'mysql'
hostname: 'mysql'
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
- MYSQL_USER=user
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-user}
restart: always
volumes:
mysql_data:
driver: local