zjrwtx commited on
Commit
8bedda9
·
1 Parent(s): 52b97d8

update docker yml to en

Browse files
Files changed (1) hide show
  1. .container/docker-compose.yml +7 -7
.container/docker-compose.yml CHANGED
@@ -10,13 +10,13 @@ services:
10
  dockerfile: .container/Dockerfile
11
 
12
  volumes:
13
- # 挂载.env文件,方便配置API密钥
14
  - ../owl/.env:/app/owl/.env
15
- # 挂载example文件夹,以支持docker容器内运行代码案例
16
  - ../examples:/app/examples
17
- # 挂载数据目录
18
  - ./data:/app/owl/data
19
- # 挂载缓存目录,避免重复下载
20
  - ~/.cache/pip:/root/.pip/cache
21
  - ~/.cache/playwright:/root/.cache/ms-playwright
22
  environment:
@@ -32,13 +32,13 @@ services:
32
  stdin_open: true
33
  tty: true
34
  shm_size: 2gb
35
- # 简化资源限制
36
  deploy:
37
  resources:
38
  limits:
39
  memory: 4G
40
 
41
- # 定义持久化卷,用于缓存 | Define persistent volumes for caching
42
  volumes:
43
  playwright-cache:
44
- pip-cache:
 
10
  dockerfile: .container/Dockerfile
11
 
12
  volumes:
13
+ # Mount .env file for easy API key configuration
14
  - ../owl/.env:/app/owl/.env
15
+ # Mount examples folder to support running code examples inside the Docker container
16
  - ../examples:/app/examples
17
+ # Mount data directory
18
  - ./data:/app/owl/data
19
+ # Mount cache directories to avoid repeated downloads
20
  - ~/.cache/pip:/root/.pip/cache
21
  - ~/.cache/playwright:/root/.cache/ms-playwright
22
  environment:
 
32
  stdin_open: true
33
  tty: true
34
  shm_size: 2gb
35
+ # Simplify resource limits
36
  deploy:
37
  resources:
38
  limits:
39
  memory: 4G
40
 
41
+ # Define persistent volumes for caching
42
  volumes:
43
  playwright-cache:
44
+ pip-cache: