firefox/docker-compose.yml
2016-04-07 15:56:41 +02:00

46 lines
1.2 KiB
YAML

version: '2'
volumes:
data: {}
networks:
isolated:
external:
name: isolated
services:
preseed:
# host2docker
# this will create a data volume and then copy user's firefox profile data
# when the data volume is empty
image: busybox
network_mode: bridge
volumes:
- $HOME/.mozilla:/source
- data:/target
command: /bin/sh -c "[ -d "firefox" ] || (( cd /source && tar cf - . ) | ( cd /target; tar xfp - ))"
firefox:
build: ./
networks:
- isolated
devices:
- /dev/dri
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:ro
- /usr/share/themes:/usr/share/themes:ro
- /usr/share/icons:/usr/share/icons:ro
- /var/run/cups:/var/run/cups:ro
- /etc/localtime:/etc/localtime:ro
- /etc/machine-id:/etc/machine-id:ro
- /run/user/1000/pulse:/run/user/1000/pulse
# - /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
# - $HOME/.mozilla:/home/firefox/.mozilla
- data:/home/user/.mozilla
- $HOME/Downloads:/home/user/Downloads
environment:
DISPLAY: unix$DISPLAY
depends_on:
- preseed