Deploy firefox as container
Jinna Balu
Posted on September 27, 2024
Firefox + Caddy + HTTPS for firefox.jinnabalu.local
Create the folder and create the following files, here is the tree, configuration is available in github repo infinite-docker-compose
firefox tree
.
├── Caddyfile
└── docker-compose.yml
1 directory, 2 files
- docker-compose.yml
services:
firefox:
image: lscr.io/linuxserver/firefox:latest
container_name: firefox
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
ports:
- "3001:3001"
shm_size: "1gb"
restart: unless-stopped
caddy:
image: caddy:latest
container_name: caddy
depends_on:
- firefox
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
restart: unless-stopped
volumes:
caddy_data:
caddy_config:
- Caddyfile
firefox.jinnabalu.local {
reverse_proxy firefox:3001
tls internal
}
Update the host for mapping the domain, this is not required if you are mapping to the DNS records from the internet registry.
sudo nano /etc/hosts
Add the following record
127.0.0.1 firefox.jinnabalu.local
Finally run the application docker compose up -d
, open https://firefox.jinnabalu.local
💖 💪 🙅 🚩
Jinna Balu
Posted on September 27, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.