-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (29 loc) · 1.04 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
32 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
openserp:
container_name: serp
init: true
# Chrome crashes with "Out of memory" on page loads when /dev/shm is the default 64MB. Prefer an enlarged shm over `ipc:host` to keep the container isolated from the host IPC namespace.
shm_size: 2gb
image: karust/openserp:latest
# To build from source instead of pulling the prebuilt image,
# uncomment and run `docker compose up --build`:
#build:
# context: .
ports:
- 7000:7000
command: serve -l
volumes:
- ./config.yaml:/usr/src/app/config.yaml:ro
# proxies:
# entries:
# - url: http://user:pass@res-proxy-1.example:8080
# tags: [google]
# - url: http://user:pass@res-proxy-2.example:8080
# tags: [google]
# google:
# proxy: google
environment:
OPENSERP_SERVER_HOST: "0.0.0.0"
OPENSERP_SERVER_PORT: 7000
OPENSERP_BAIDU_RATE_REQUESTS: 6 # Number of requests per Minute
OPENSERP_BAIDU_RATE_BURST: 2 # Number of non-ratelimited requests per Minute