Skip to content

Instantly share code, notes, and snippets.

@skhaz
Created May 20, 2024 13:00
Show Gist options
  • Save skhaz/370041e1c5ae110a7f399afba2c7a235 to your computer and use it in GitHub Desktop.
Save skhaz/370041e1c5ae110a7f399afba2c7a235 to your computer and use it in GitHub Desktop.
Firefox in Docker with X Server
services:
firefox:
image: jlesage/firefox
environment:
- DISPLAY=host.docker.internal:0.0
- XAUTHORITY=/root/.Xauthority
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- $HOME/.Xauthority:/root/.Xauthority
restart: unless-stopped
@skhaz
Copy link
Author

skhaz commented May 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment