dumbo/examples/docker-nginx

Docker Nginx Example

This repository provides a basic example of setting up Nginx in a Docker environment using Dumbo. The provided configuration is intended as a starting point for development and production deployments.

Prerequisites

  • Ensure that you have Docker installed on your system.

Running the Example

1. Install Dependencies

Before building the Docker images, you need to install the project dependencies using Composer:

composer install

2. Build and Start Docker Containers

Development Environment

To build and start the Docker containers for development:

  1. Build the Docker images:

    docker-compose -f docker-compose.yml build
    
  2. Start the Docker containers:

    docker-compose up --build web
    
  3. Navigate to localhost.

Production Environment

To build and start the Docker containers for production:

  1. Build the Docker image:

    docker build --tag notrab/dumbo:docker-nginx-example .
    
  2. Run the Docker container:

    docker run notrab/dumbo:docker-nginx-example