firefox/docker-compose.yml

26 lines
612 B
YAML
Raw Normal View History

2016-03-23 20:44:53 +00:00
version: '2'
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 .
image: andrey01/firefox
2016-04-30 09:53:23 +00:00
read_only: true
network_mode: bridge
2016-03-23 20:44:53 +00:00
devices:
- /dev/dri
- /dev/video0
2016-03-23 20:44:53 +00:00
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
2016-04-30 09:53:23 +00:00
- /dev/shm:/dev/shm:ro
- 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
# - /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
2016-03-23 20:44:53 +00:00
environment:
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native