Demo

Running the Demo of Movie Posters Project in Docker with Docker Compose

This instruction details how to run the pre-built and non-pre-built versions of the project demo. Docker Compose must be installed on your system before proceeding. Follow the appropriate steps based on your preference or system compatibility.


1. Pre-Built Version

This method is the easiest and quickest way to run the project.

Steps:

Download docker-compose.yml:
Download the file from this link:

docker-compose.yml

Place in Your Desired Folder:
Save the downloaded file in the folder where you want to run the demo.

Navigate to the Folder:
Open your terminal and use the cd command to navigate to the folder where the file is located. For example:

cd /path/to/your/folder

Run Docker Compose:
Start the containers with the following command:

docker-compose up

Access the Demo:
Once the containers are loaded, open a web browser and go to:

http://localhost

2. Non-Pre-Built Version

This method builds the containers from source and is required if you encounter issues with the pre-built version (e.g., Mac ARM processors).

Steps:

Download the Source Folder:
Download the project folder from this link:

DockerDemo

Navigate to the Folder:
Place the downloaded folder in your desired directory and navigate to it in the terminal:

cd /path/to/DockerDemo

Build and Run the Containers:
Use the following commands to build and start the containers:

docker-compose build

docker-compose up


Access the Demo:
Once the containers are built and loaded, open a web browser and go to:

http://localhost:3006


3. Special Instructions for Mac Users on ARM Processors

The pre-built version may not work on Mac systems with ARM processors (e.g., M1 or M2 chips).

Steps:

Update Dockerfiles:
If using an ARM Mac, you may need to build the images yourself. Update the Dockerfiles to include versions of the required packages that are compatible with ARM architecture.

Build and Run the Containers:
After updating the Dockerfiles, use the following commands:

docker-compose build

docker-compose up


Access the Demo:
Open a web browser and go to:

http://localhost:3006


Troubleshooting

If you encounter issues, check your Docker Compose installation by running:

docker-compose --version

Ensure no other services are using the same ports (e.g., 80 for localhost or 3006 for non-pre-built).

By following the above instructions, you should be able to run the Movie Posters demo successfully in Docker!