-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (34 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
33
34
services:
agent-browser:
build:
context: .
dockerfile: Dockerfile
image: agent-browser:0.2.2
# Host networking makes the numeric loopback binds below refer to the host
# loopback interface. Do not replace this with bridge port publishing:
# websockify would then need a container-interface listener reachable by peers.
network_mode: host
environment:
AGENT_BROWSER_API_BIND: "127.0.0.1"
AGENT_BROWSER_API_HOST: "127.0.0.1"
AGENT_BROWSER_API_PORT: "8092"
AGENT_BROWSER_CONTAINER_MODE: "1"
AGENT_BROWSER_NOVNC_BIND: "127.0.0.1"
AGENT_BROWSER_NOVNC_HOST: "127.0.0.1"
AGENT_BROWSER_NOVNC_PORT: "6080"
AGENT_BROWSER_REMOTE_MODE: "0"
DISPLAY: ":99"
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=1g
- /home/agent/.cache:rw,noexec,nosuid,nodev,size=256m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 512
mem_limit: 2g
cpus: 2.0
shm_size: 1gb
stop_grace_period: 20s
restart: "no"