Sign inSign up

kraneelmanandhar/new-docker:v2.0

Manifest digest

sha256:3c658e668667897edb6743f22ba299f1cdc05ad3e7b2c47c60e9b44c30092637

Last pushed

about 1 month by kraneelmanandhar

Type

Compose

Manifest digest

sha256:3c658e668667897edb6743f22ba299f1cdc05ad3e7b2c47c60e9b44c30092637

Compose file content

services:
  mongo:
    image: mongo:7
    restart: unless-stopped
    volumes:
      - mongo-data:/data/db

  backend:
    build: ./backend
    image: kraneelmanandhar/backend:v1.0
    environment:
      PORT: 5000
      MONGO_URI: mongodb://mongo:27017/simple-mern-todo
    ports:
      - "5000:5000"
    depends_on:
      - mongo

  frontend:
    build:
      context: ./frontend
      args:
        VITE_API_URL: http://13.221.214.38:5000/api
    image: kraneelmanandhar/frontend:v1.0
    ports:
      - "5173:80"
    depends_on:
      - backend

volumes:
  mongo-data:

Docker commands

docker compose -f oci://kraneelmanandhar/new-docker:v2.0 up

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

Images used

Image + 1 more

MongoDB document databases provide high availability and easy scalability.


Pulls

1B+

Stars

10750

Last Updated

about 8 hours

Image


Pulls

80

Stars

0

Last Updated

about 1 month

Image


Pulls

59

Stars

0

Last Updated

about 1 month