Skip to content

🔥 Firestore Emulator Docker image for local development

Notifications You must be signed in to change notification settings

danieltrolezi/firestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🔥 firestore

Firestore Emulator Docker image for local development and Github Actions.

Examples

Docker Compose

services:
  firestore:
    container_name: firestore
    image: danieltrolezi/firestore:latest
    ports:
      - '8080:8080'
      - '4000:4000'
    environment:
      - GOOGLE_APPLICATION_CREDENTIALS=/firebase/credentials.json
      - FIRESTORE_PROJECT_ID=${FIRESTORE_PROJECT_ID}
    volumes:
      - './docker/firebase/credentials.json:/firebase/credentials.json'
    healthcheck:
      test: ["CMD", "wget", "--spider", "http://localhost:8080"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    networks:
      - bridge

networks:
  bridge:

Github Actions

name: Example Workflow

on:
  workflow_call:

jobs:
  example-job:
    runs-on: ubuntu-latest

    services:
      firestore:
        image: danieltrolezi/firestore:latest
        ports: 
          - 8080:8080
        env:
          FIRESTORE_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}

Pushing image to repository

  1. Authenticate
docker login
  1. Build Docker image and tag it locally
docker build -t firestore:latest .
  1. Tag the image using repository URL
docker tag firestore:latest danieltrolezi/firestore:latest
  1. Push the Image to repository
docker push danieltrolezi/firestore:latest

About

🔥 Firestore Emulator Docker image for local development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published