Fix and improve

This commit is contained in:
Baohua Yang
2026-02-12 16:51:50 -08:00
parent bae82e993a
commit 0835f8467a
100 changed files with 280 additions and 622 deletions

View File

@@ -50,14 +50,12 @@ RUN pip install redis flask
CMD ["python", "app.py"]
```
#### docker-compose.yml
#### compose.yaml
编写 `docker-compose.yml` 文件 Compose 使用的主模板文件
编写 `compose.yaml` 文件这是 Compose 推荐使用的主模板文件也兼容 `docker-compose.yml` 等历史文件名
```yaml
services:
web:
build: .
ports:
@@ -139,7 +137,7 @@ $ docker compose start
$ docker compose run web python app.py
```
#### 验证 `docker-compose.yml`
#### 验证 Compose 文件
运行以下命令: