update docker yml to en
Browse files
.container/docker-compose.yml
CHANGED
@@ -10,13 +10,13 @@ services:
|
|
10 |
dockerfile: .container/Dockerfile
|
11 |
|
12 |
volumes:
|
13 |
-
#
|
14 |
- ../owl/.env:/app/owl/.env
|
15 |
-
#
|
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 |
-
#
|
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:
|