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.
42 lines
997 B
42 lines
997 B
version: '2'
|
|
|
|
volumes:
|
|
data: {}
|
|
|
|
services:
|
|
firefox:
|
|
# docker build -t local/firefox .
|
|
image: local/firefox
|
|
network_mode: bridge
|
|
devices:
|
|
- /dev/dri
|
|
# - /dev/video0
|
|
volumes:
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
|
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
|
- data:/home/user
|
|
- $HOME/Downloads:/home/user/Downloads
|
|
- /var/run/cups:/var/run/cups:ro
|
|
- /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
|
|
environment:
|
|
- DISPLAY=unix$DISPLAY
|
|
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
|
- TZ=Europe/Amsterdam
|
|
# Turns off anonymous page swapping
|
|
mem_swappiness: 0
|
|
cap_add:
|
|
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
|
|
shm_size: 4G
|
|
# mem_limit: 4G
|
|
|
|
# For versions above: '3.0'
|
|
# deploy:
|
|
# resources:
|
|
# limits:
|
|
# memory: 4G
|
|
# restart_policy:
|
|
# condition: none
|
|
# delay: 5s
|
|
# max_attempts: 1
|
|
# window: 120s
|