Created
May 20, 2024 13:00
-
-
Save skhaz/370041e1c5ae110a7f399afba2c7a235 to your computer and use it in GitHub Desktop.
Firefox in Docker with X Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.baeldung.com/linux/docker-container-gui-applications