forked from DevOps/deploy.stack
modify(stack): stack yaml modify
This commit is contained in:
21
dbSer/mysql/prod.stack.yml
Normal file
21
dbSer/mysql/prod.stack.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Pull:: docker compose --env-file ./dbSer/mysql/env.cfg -f ./dbSer/mysql/prod.stack.yml pull
|
||||
# Run:: docker compose -p dbSer --env-file ./dbSer/mysql/env.cfg -f ./dbSer/mysql/prod.stack.yml up -d
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.3.0
|
||||
container_name: prod-mysql
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=Kevin%0412%Mysql
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- mysql_logs:/var/log/mysql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
mysql_logs:
|
||||
Reference in New Issue
Block a user