服务部署
version: '3'
services:
mysql:
image: mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: J1wLH9GAy4M9sfeeq654fsf
MYSQL_USER: grcron
MYSQL_PASSWORD:
MYSQL_DATABASE: gocron
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_bin
- --transaction-isolation=READ-COMMITTED
restart: always
volumes:
- /data/mysql/data:/var/lib/mysql
- /data/mysql/conf:/etc/mysql
gocron:
image: ouqg/gocron
container_name: gocron
links:
- mysql
ports:
- 5920:5920
volumes:
- /data/gocron:/app/conf
- /data/gocron:/app/log
restart: always
用户添加
useradd -M app标签:mysql,app,配置,--,服户,MYSQL,gocron,data From: https://blog.51cto.com/yht1990/5947489
setfacl -R -m app:wx /data/gocron 或 chmod -R 777 /data/gocron