You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chrome/docker-compose.yml

32 lines
937 B

5 years ago
version: '3.7'
8 years ago
8 years ago
services:
chrome:
5 years ago
init: true
7 years ago
build: .
8 years ago
devices:
- /dev/dri
8 years ago
# - /dev/video0
8 years ago
volumes:
8 years ago
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
5 years ago
- ./data:/home/user
8 years ago
- $HOME/Downloads:/home/user/Downloads
8 years ago
- /var/run/cups:/var/run/cups:ro
- /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
5 years ago
- /etc/localtime:/etc/localtime:ro
- /etc/machine-id:/etc/machine-id:ro
8 years ago
environment:
8 years ago
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
# SYS_ADMIN is NOT required if you run chrome with `--no-sandbox` flag
# more on CAP_SYS_ADMIN https://lwn.net/Articles/486306/
cap_add:
- SYS_ADMIN
7 years ago
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
shm_size: 4G
7 years ago
# mem_limit: 4G
8 years ago
# security_opt:
# - apparmor:docker-ptrace
# - apparmor:unconfined