Created
May 24, 2024 06:01
-
-
Save Staubgeborener/7899ad152cf39a2dda24e7c45272ea34 to your computer and use it in GitHub Desktop.
Gluetun and Firefox in Docker
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
# Firefox Proxy Settings: | |
# HTTP Proxy: localhost:8888 | |
# HTTPS Proxy: localhost:8888 | |
# SOCKS Host: localhost:8388 | |
services: | |
gluetun: | |
image: qmcgaw/gluetun | |
container_name: gluetun | |
cap_add: | |
- NET_ADMIN | |
environment: | |
# some providers require to extract the opvenvpn config files: | |
# https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/openvpn-client-certificate.md | |
# https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/openvpn-client-encrypted-key.md | |
- VPN_SERVICE_PROVIDER= | |
- OPENVPN_USER= | |
- OPENVPN_PASSWORD= | |
# Optional: Specify the country and/or city | |
- SERVICE_COUNTRIES= | |
- HTTPPROXY=on | |
ports: | |
- 8888:8888/tcp # For Gluetun's built-in HTTP proxy (if needed) | |
- 8388:8388/tcp # For Gluetun's built-in Shadowsocks server (if needed) | |
- 8388:8388/udp # For Gluetun's built-in Shadowsocks server (if needed) | |
- 3000:3000 # Firefox | |
#- 3001:3001 # Firefox VNC | |
volumes: | |
- ./gluetun/config:/gluetun | |
restart: unless-stopped | |
browser: | |
image: lscr.io/linuxserver/firefox:latest | |
container_name: browser | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=America/New_York | |
- HTTP_PROXY=http://localhost:8888 # Set the HTTP proxy to Gluetun | |
- HTTPS_PROXY=http://localhost:8888 # Set the HTTPS proxy to Gluetun | |
network_mode: "service:gluetun" | |
shm_size: "1gb" | |
volumes: | |
- ./firefox-docker/config:/config:rw | |
- ./firefox-docker/downloads:/downloads:rw | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment