This container allows you to access the firefox web browser trough another web browser using kasmvnc.
To set up the container, you can either use docker-compose or the docker cli. You can also use options and additional settings/mods from linuxserver.io. And to update the container, simply pull the latest image, and redeploy it. The ESR (extended support release) version is also available!
docker-compose (recommended)
---
services:
firefox:
image: ghcr.io/tibor309/firefox:latest
container_name: firefox-browser
security_opt:
- seccomp:unconfined #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- FIREFOX_CLI=https://www.github.com/ #optional
volumes:
- /path/to/config:/config
ports:
- 3000:3000
- 3001:3001
shm_size: "1gb"
restart: unless-stopped
docker run -d \
--name=firefox-browser \
--security-opt seccomp=unconfined `#optional` \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e FIREFOX_CLI=https://www.github.com/ `#optional` \
-p 3000:3000 \
-p 3001:3001 \
-v /path/to/config:/config \
--shm-size="1gb" \
--restart unless-stopped \
ghcr.io/tibor309/firefox:latest
You can find additional parameters and settings from the linuxserver/docker-firefox project page!
Parameter | Function |
---|---|
-p 3000 |
Firefox desktop gui. |
-p 3001 |
HTTPS Firefox desktop gui. |
-e PUID=1000 |
For UserID |
-e PGID=1000 |
For GroupID |
-e TZ=Etc/UTC |
Specify a timezone to use, see this list. |
-e FIREFOX_CLI=https://www.github.com/ |
Specify one or multiple Firefox CLI flags, this string will be passed to the application in full. |
-v /config |
Users home directory in the container, stores local files and settings |
--shm-size= |
This is needed for any modern website to function like youtube. |
--security-opt seccomp=unconfined |
For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker. |
To access the container, navigate to the ip address for your machine with the port you provided at the setup.