Sign inSign up

bretfisher/nodejs-rocks-in-docker:latest

Manifest digest

sha256:60c5b95ce5f0a0eb81df7dd936fcd06ff2d1e32f3d733271f5f4b0ecf2e649ec

Last pushed

almost 3 years by bretfisher

Type

Compose

Manifest digest

sha256:60c5b95ce5f0a0eb81df7dd936fcd06ff2d1e32f3d733271f5f4b0ecf2e649ec

Compose file content

###
## for local dev, wait for db to pass healthcheck before we start node
## also, build custom dockerfile to the dev stage
###

# version key is DEPRECATED
# v2 and v3 features now combined in compose CLI

services:
  node:
    build:
      dockerfile: dockerfiles/5.Dockerfile
      context: .
      # build to the stage named dev
      target: dev
    volumes:
      - .:/app
    ports:
      # use docker compose ps to see which host port is used
      - "3000"
    depends_on:
      db:
        condition: service_healthy

  db:
    image: postgres
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    volumes:
      - ./healthchecks:/healthchecks
    healthcheck:
      test: /healthchecks/postgres-healthcheck
      interval: "5s"

Docker commands

docker compose -f oci://bretfisher/nodejs-rocks-in-docker:latest up

Use the above command to pull and run the Compose file. Learn more.

Images used

Image + 1 more

The PostgreSQL object-relational database system provides reliability and data integrity.


Pulls

1B+

Stars

15016

Last Updated

1 day