Skip to content

cohuebn/docker-firebase-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Firebase Emulator

A Docker image containing the Firebase emulator. This can be used to setup Firebase emulation in your environment alongside other Docker resources (e.g. Postgres, Mongo, etc.).

This is useful when you want to develop an application using Firebase, but want a completely local environment running in Docker for testing.

Source code for this image can be at https://github.com/cohuebn/docker-firebase-emulator

Configuration

By default, this emulator only runs the Firebase authentication service. However, you can add your own configuration file and mount it to emulate additional services.

  • If you wish to only run the auth service, just run the container as-is (no custom config required).
  • By default, the Firebase Emulator UI will be enabled and exposed at http://localhost:8083/
  • Firebase config must be mounted at the location /firebase in the container
  • At a minimum, the mounted config directory must contain a firebase.json file. Additionally, the directory can contain referenced config, such as Firestore rules
  • For an example of mounting custom config, see the multiple-services-with-rules example.

Examples

Examples of how to use this image be found in the examples directory of the Github repository for this project.

About

A docker image that can run the Firebase emulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published