增加docker-compose文件

This commit is contained in:
johlanse 2022-07-27 17:51:42 +08:00
parent a622b5d6f1
commit 6f82323d8b
1 changed files with 20 additions and 0 deletions

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: "3.5"
services:
xuexi-auto:
image: jolanse/study_xxqg:latest
# 容器名
container_name: xuexi-auto
environment:
# 时区
- TZ=Asia/Shanghai
build:
context: .
# 内存大小
shm_size: '2g'
# 配置文件路径
volumes:
- ./config:/opt/config
# 映射端口
ports:
- 8080:8080
restart: unless-stopped