Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Docker Tutorial Project

A simple goal-tracking application with a Node.js backend and a React frontend, all wrapped up with Docker for an easy and consistent development environment.

🛠 Prerequisites

Make sure you have the following installed:

  • 🐳 Docker
  • 🐳 Docker Compose

🚀 Getting Started

1. Clone the Repository

git clone this repo
cd docker-getting-started

2. Create Environment Files in env directory

create a backend.env file with:

MONGODB_USERNAME=your-username
MONGODB_PASSWORD=your-password
MONGODB_URL=your-mongodb-url
MONGODB_NAME=your-database-name

create a mongo.env file with:

MONGO_INITDB_ROOT_USERNAME=username
MONGO_INITDB_ROOT_PASSWORD=password

3. Build and Start the Services

docker-compose up --build

4. Access the Application

Backend: http://localhost Frontend: http://localhost:3000

🐳 Docker Commands

  • Build Images: docker-compose build
  • Start Services: docker-compose up
  • Stop Services: docker-compose down
  • View Containers: docker ps

About

Getting started with Docker

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages