Deploy firefox as container
Jinna Balu

Jinna Balu @jinnabalu

About: Platform Design and Development | Devops | Monitoring | CICD | ODD | SQL/NoSQL | ELK | AWS | Jhipster | Microservices | Agile | Scrum

Location:
Hyderabad
Joined:
May 16, 2020

Deploy firefox as container

Publish Date: Sep 27 '24
1 0

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
Enter fullscreen mode Exit fullscreen mode
  1. 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:
Enter fullscreen mode Exit fullscreen mode
  1. Caddyfile
firefox.jinnabalu.local {
    reverse_proxy firefox:3001
    tls internal
}
Enter fullscreen mode Exit fullscreen mode

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

Comments 0 total

    Add comment