chrome/docker-compose.yml

33 lines
962 B
YAML
Raw Normal View History

2018-12-25 18:06:31 +00:00
version: '3.7'
2016-05-07 08:38:37 +00:00
2016-03-23 20:46:30 +00:00
services:
chrome:
2018-12-25 18:06:31 +00:00
init: true
2017-06-22 22:52:52 +00:00
build: .
2016-05-07 08:38:37 +00:00
network_mode: bridge
2016-03-23 20:46:30 +00:00
devices:
- /dev/dri
2016-05-07 08:38:37 +00:00
# - /dev/video0
2016-03-23 20:46:30 +00:00
volumes:
2016-05-07 08:38:37 +00:00
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
2018-12-25 18:06:31 +00:00
- ./data:/home/user
2016-05-07 08:38:37 +00:00
- $HOME/Downloads:/home/user/Downloads
2016-03-23 20:46:30 +00:00
- /var/run/cups:/var/run/cups:ro
2016-05-19 15:49:31 +00:00
- /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
2018-12-25 18:06:31 +00:00
- /etc/localtime:/etc/localtime:ro
- /etc/machine-id:/etc/machine-id:ro
2016-03-23 20:46:30 +00:00
environment:
2016-05-07 08:38:37 +00:00
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
2016-05-19 15:49:31 +00:00
# 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
2017-06-22 22:52:52 +00:00
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
shm_size: 4G
2017-06-22 22:52:52 +00:00
# mem_limit: 4G
2016-05-07 08:38:37 +00:00
# security_opt:
# - apparmor:docker-ptrace
# - apparmor:unconfined