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

46 lines
1.4 KiB

7 years ago
version: '2.1'
8 years ago
8 years ago
# Initialize
# docker run --rm -ti -v chrome_data:/data busybox /bin/sh -c "chown 1000:1000 /data"
volumes:
data: {}
certs: {}
8 years ago
8 years ago
services:
chrome:
8 years ago
image: andrey01/chrome
network_mode: bridge
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
- data:/data
- certs:/home/user/.pki/nssdb
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
8 years ago
environment:
8 years ago
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
# some webapps won't work when the timezone is not properly set, e.g.
# the ownCloud's (v9.0.0) calendar (v1.0.0.0) does not work correctly
# the same could happen with Icinga2 web interface
8 years ago
- TZ=Europe/Amsterdam
# 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
8 years ago
# security_opt:
# - apparmor:docker-ptrace
# - apparmor:unconfined
# fixes the: grsec: denied resource overstep by requesting 28 for RLIMIT_NICE against limit 0 for /opt/google/chrome/chrome
ulimits:
nice: 28
shm_size: 4G
7 years ago
mem_limit: 4G
# Turns off anonymous page swapping
mem_swappiness: 0