Initializing Dependencies¶
This section guides you through the setup and initialization of the primary dependencies required to get the MedSync WebApp up and running. These include Docker, Docker-Compose, and the database setup.
1. Docker & Docker-Compose Setup¶
Docker provides an efficient way to containerize applications and their dependencies. Docker-Compose, on the other hand, allows for defining and running multi-container Docker applications.
What is Docker and Docker-Compose?
Docker is a platform for developing, shipping, and running applications using containerization. Docker-Compose is a tool for defining and running multi-container Docker applications.
Refer to this section for more details on Docker and Docker-Compose.
Tip
We are using Docker and Docker-Compose to run all the services required for the MedSync WebApp.
Refer to this section for more details on the project composition.
Windows¶
-
Install Docker Desktop for Windows
- Download the Docker Desktop for Windows from the official Docker website.
- Launch the installer and follow the installation wizard.
-
Docker-Compose
- Docker Desktop for Windows already comes bundled with Docker-Compose, so there's no need for a separate installation.
-
Verify Installation
- Open the command prompt and run:
- Ensure that both commands return their respective versions, indicating a successful installation.
MacOS¶
-
Install Docker Desktop for Mac:
- Download Docker Desktop for Mac from the official Docker website.
- Drag and drop the Docker.app to the Applications folder.
-
Docker-Compose:
- Docker Desktop for Mac already comes bundled with Docker-Compose, so there's no need for a separate installation.
-
Verify Installation:
- Open the terminal and run:
- Ensure that both commands return their respective versions, indicating a successful installation.
Ubuntu¶
Install Docker¶
- Update the apt package index:
- Install Docker's package dependencies:
- Add Docker’s official GPG key:
- Add Docker's repository:
- Install Docker:
Install Docker-Compose¶
Warning
Replace 2.22.0
with the latest version of Docker-Compose.
- Download the Docker-Compose binary:
- Apply executable permissions to the binary:
Verify Installation¶
- Run:
-
Both commands should return their respective versions.
2. Deployment¶
- If you opted for a local deployment, refer to the Local Deployment Guide.
- If you opted for a live deployment, refer to the Production Deployment Guide.