Skip to content

Docker Usage Guide

BasilJaworski edited this page Dec 21, 2024 · 2 revisions

Docker Usage Guide

Introduction

Docker is a platform that enables developers to package applications and their dependencies into lightweight, portable containers. These containers can be run consistently across different environments, simplifying deployment and scaling. Using Docker and docker-compose u can up the systems consists of different services running in parallel.

Prerequisites

Before getting started, make sure you have the following installed:

  • Docker (for building and running containers)
  • Docker Compose (if your project uses multiple services)

Docker Install

To install Docker use This Link

Docker Compose

To install Docker Compose use This Link

Or this for Linux

$ curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose

To check the version use

$ docker-compose --version

Working With Project

  1. Clone your project, use next command:
$ git clone <your_project_link>
  1. Create .env file. Use .env.example to get needed fields
  2. Then move to the cloned repo, use next command:
$ cd <your_project>
  1. Now, time to up your app! Use next command:
$ docker-compose up --build

Clone this wiki locally