2017-04-20 10:50:54 +00:00
|
|
|
version: '2.1'
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-07 13:56:41 +00:00
|
|
|
volumes:
|
|
|
|
data: {}
|
|
|
|
|
2016-03-23 20:44:53 +00:00
|
|
|
services:
|
|
|
|
firefox:
|
2016-04-30 09:53:23 +00:00
|
|
|
# docker build -t andrey01/firefox .
|
2016-04-12 10:01:25 +00:00
|
|
|
image: andrey01/firefox
|
2016-04-26 22:07:53 +00:00
|
|
|
network_mode: bridge
|
2016-03-23 20:44:53 +00:00
|
|
|
devices:
|
|
|
|
- /dev/dri
|
2016-05-04 16:19:24 +00:00
|
|
|
# - /dev/video0
|
2016-03-23 20:44:53 +00:00
|
|
|
volumes:
|
2016-04-12 10:01:25 +00:00
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
2016-04-26 22:07:53 +00:00
|
|
|
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
2016-04-12 10:01:25 +00:00
|
|
|
- data:/home/user
|
2016-04-07 13:56:41 +00:00
|
|
|
- $HOME/Downloads:/home/user/Downloads
|
2016-04-30 09:53:23 +00:00
|
|
|
- /var/run/cups:/var/run/cups:ro
|
2016-05-19 15:53:41 +00:00
|
|
|
- /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
|
2016-03-23 20:44:53 +00:00
|
|
|
environment:
|
2016-04-08 15:02:43 +00:00
|
|
|
- DISPLAY=unix$DISPLAY
|
2016-04-26 22:07:53 +00:00
|
|
|
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
2016-05-03 19:08:18 +00:00
|
|
|
- TZ=Europe/Amsterdam
|
2016-08-07 17:49:20 +00:00
|
|
|
shm_size: 4G
|
2017-04-20 10:50:54 +00:00
|
|
|
mem_limit: 4G
|
2017-04-25 13:53:54 +00:00
|
|
|
# Turns off anonymous page swapping
|
|
|
|
mem_swappiness: 0
|
2017-04-20 10:50:54 +00:00
|
|
|
|
|
|
|
# For versions above: '3.0'
|
|
|
|
# deploy:
|
|
|
|
# resources:
|
|
|
|
# limits:
|
|
|
|
# memory: 4G
|
|
|
|
# restart_policy:
|
|
|
|
# condition: none
|
|
|
|
# delay: 5s
|
|
|
|
# max_attempts: 1
|
|
|
|
# window: 120s
|