mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-16 13:50:03 +01:00
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:
-
Build the Docker images:
docker-compose -f docker-compose.yml build
-
Start the Docker containers:
docker-compose up --build web
-
Navigate to localhost.
Production Environment
To build and start the Docker containers for production:
-
Build the Docker image:
docker build --tag notrab/dumbo:docker-nginx-example .
-
Run the Docker container:
docker run notrab/dumbo:docker-nginx-example