build(chuanqi): 创建docker-compose文件和wch目录
- 新增docker-compose.yml文件,定义CentOS 7.9.2009镜像的服务 - 创建wch目录并添加唯一标识文件 - 配置服务的端口映射、卷挂载和重启策略
This commit is contained in:
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
server:
|
||||
image: centos:centos7.9.2009
|
||||
container_name: chuanqi-server
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- ./server:/data/server
|
||||
- ./run.sh:/data/run.sh
|
||||
- ./stop.sh:/data/stop.sh
|
||||
- ./wch:/etc/yum/wch
|
||||
- /usr/lib64/mysql:/usr/lib64/mysql
|
||||
network_mode: "host"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
1
wch/88888888888888888
Normal file
1
wch/88888888888888888
Normal file
@@ -0,0 +1 @@
|
||||
2160299F-7788-4B22-8F7C-9A87827D2B4A
|
||||
Reference in New Issue
Block a user