{"id":11993,"date":"2024-07-05T15:48:45","date_gmt":"2024-07-05T09:18:45","guid":{"rendered":"http:\/\/www.spiceworksmyanmar.com\/blog\/?p=11993"},"modified":"2024-07-05T15:48:45","modified_gmt":"2024-07-05T09:18:45","slug":"create-a-local-laravel-development-with-docker","status":"publish","type":"post","link":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/","title":{"rendered":"Create a local laravel development with Docker"},"content":{"rendered":"<p>\u1019\u1004\u103a\u1039\u1002\u101c\u102c\u1015\u102b\u104b<br \/>\n\u1000\u103b\u103d\u1014\u103a\u1010\u1031\u102c\u103a\u1000\u1010\u1031\u102c\u1037 Spiceworks Myanmar \u1019\u103e\u102c Backend Developer \u1021\u1014\u1031\u1014\u1032\u1037 \u1010\u102c\u101d\u1014\u103a\u101a\u1030\u101c\u102f\u1015\u103a\u1000\u102d\u102f\u1004\u103a\u1014\u1031\u1010\u1032\u1037 \u101e\u102f\u1010\u101a\u102c\u1019\u102d\u102f\u1038 \u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b <a href=\"http:\/\/www.spiceworksmyanmar.com\/blog\/docker-quick-start-intro\/\" rel=\"noopener\" target=\"_blank\">Docker<\/a> \u1019\u102d\u1010\u103a\u1006\u1000\u103a \u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1000\u102d\u102f\u1010\u1031\u102c\u1037 \u1019\u103b\u103e\u101d\u1031\u1015\u1031\u1038\u1011\u102c\u1038\u1015\u103c\u102e\u1038\u1015\u103c\u102e\u1019\u102d\u102f\u1037\u101c\u102d\u102f\u1037 \u101d\u1004\u103a\u101b\u1031\u102c\u1000\u103a\u1016\u1010\u103a\u101b\u103e\u102f\u1014\u102d\u102f\u1004\u103a\u1015\u102b\u1010\u101a\u103a\u104b \u1021\u1001\u102f \u1018\u101c\u1031\u102c\u1037\u1002\u103a\u1019\u103e\u102c\u1010\u1031\u102c\u1037 Docker \u1000\u102d\u102f\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1015\u103c\u102e\u1038 Laravel project \u1021\u1010\u103d\u1000\u103a \u101c\u102d\u102f\u1021\u1015\u103a\u1010\u1032\u1037 Nginx web server, PHP application server \u1014\u103e\u1004\u1037\u103a MySQL database \u1005\u101e\u1031\u102c services \u1010\u103d\u1031\u1000\u102d\u102f\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1015\u103c\u102e\u1038 development environment \u1010\u100a\u103a\u1006\u1031\u102c\u1000\u103a\u1015\u102f\u1036\u1000\u102d\u102f \u101d\u1031\u1019\u103b\u103e\u1015\u1031\u1038\u101e\u103d\u102c\u1038\u1001\u103b\u1004\u103a\u1015\u102b\u1010\u101a\u103a\u104b <\/p>\n<p><strong>Project Structure<\/strong><br \/>\nLaravel project structure \u1000\u1010\u1031\u102c\u1037 \u1021\u1031\u102c\u1000\u103a\u1015\u102b\u1021\u1010\u102d\u102f\u1004\u103a\u1038\u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\nmy-laravel-project\/\r\n\u251c\u2500\u2500 docker\/\r\n\u2502   \u251c\u2500\u2500 nginx\/\r\n\u2502   \u2502   \u2514\u2500\u2500 Dockerfile\r\n\u2502   \u2502   \u2514\u2500\u2500 default.conf\r\n\u2502   \u251c\u2500\u2500 php\/\r\n\u2502   \u2502   \u2514\u2500\u2500 Dockerfile\r\n\u251c\u2500\u2500 docker-compose.yml\r\n\u251c\u2500\u2500 .env\r\n\u2514\u2500\u2500 (other Laravel project files)\r\n<\/pre>\n<p><strong>Dockerfile for PHP<\/strong><br \/>\nPHP \u1021\u1010\u103d\u1000\u103a Dockerfile \u1000\u102d\u102f php\/nginx\/ directory \u1019\u103e\u102c create \u101c\u102f\u1015\u103a\u1015\u1031\u1038\u1015\u102b\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\n#choose php:8.3-fpm as the base image\r\nFROM php:8.3-fpm\r\n\r\n# Set working directory\r\nWORKDIR \/var\/www\r\n\r\n# Copy existing application directory contents\r\nCOPY . \/var\/www\r\n\r\n# Install dependencies and required packages for the PHP application\r\nRUN apt-get update &amp;&amp; apt-get install -y \\\r\n    build-essential \\\r\n    libpng-dev \\\r\n    libjpeg62-turbo-dev \\\r\n    libfreetype6-dev \\\r\n    locales \\\r\n    zip \\\r\n    jpegoptim optipng pngquant gifsicle \\\r\n    vim \\\r\n    unzip \\\r\n    git \\\r\n    curl \\\r\n    libonig-dev \\\r\n    libzip-dev \\\r\n    libgd-dev\r\n\r\n# Clear cache and remove unnecessary packages and files to reduce the image size\r\nRUN apt-get clean &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/*\r\n\r\n# Install PHP extensions and configure GD library for image processing in PHP applications\r\nRUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl\r\nRUN docker-php-ext-configure gd --with-external-gd\r\nRUN docker-php-ext-install gd\r\n\r\n# Install Composer and run the composer install command to install the application dependencies and generate the autoloader file\r\nRUN curl -sS https:\/\/getcomposer.org\/installer | php -- --install-dir=\/usr\/local\/bin --filename=composer\r\nRUN composer install --no-scripts &amp;&amp; composer dump-autoload -o\r\n\r\n# Expose port 9000 and start php-fpm server to listen on port 9000 when the container starts running\r\nEXPOSE 9000\r\nCMD [\"php-fpm\"]\r\n\r\n<\/pre>\n<p><strong>Dockerfile for Nginx<\/strong><br \/>\nNginx \u1021\u1010\u103d\u1000\u103a Dockerfile \u1000\u102d\u102f docker\/nginx\/ directory \u1019\u103e\u102c create \u101c\u102f\u1015\u103a\u1015\u1031\u1038\u1015\u102b\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\n# choose nginx:stable-perl as the base image\r\nFROM nginx:stable-perl\r\n\r\n# copy the default nginx configuration file to the container\r\nCOPY .\/docker\/nginx\/default.conf \/etc\/nginx\/conf.d\/default.conf\r\n\r\n# expose port 80 and start the nginx server to listen on port 80 when the container starts running\r\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\r\n\r\n<\/pre>\n<p>docker\/nginx\/ directory \u1019\u103e\u102c default.conf \u1014\u102c\u1019\u100a\u103a\u1016\u103c\u1004\u103a\u1037 Nginx Configuration file \u1010\u1005\u103a\u1001\u102f create \u101c\u102f\u1015\u103a\u1015\u1031\u1038\u1015\u102b\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\n# This is the default configuration file for Nginx\r\nserver {\r\n    listen 80;\r\n    listen [::]:80;\r\n    server_name localhost;\r\n\r\n    root \/var\/www\/public;\r\n\r\n    add_header X-Frame-Options \"SAMEORIGIN\";\r\n    add_header X-Content-Type-Options \"nosniff\";\r\n\r\n    index index.php;\r\n\r\n    charset utf-8;\r\n\r\n    location \/ {\r\n        try_files $uri $uri\/ \/index.php?$query_string;\r\n    }\r\n\r\n    location = \/favicon.ico { access_log off; log_not_found off; }\r\n    location = \/robots.txt  { access_log off; log_not_found off; }\r\n\r\n    error_page 404 \/index.php;\r\n\r\n    location ~ \\.php$ {\r\n        fastcgi_pass app:9000;\r\n        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\r\n        include fastcgi_params;\r\n        fastcgi_hide_header X-Powered-By;\r\n    }\r\n\r\n    location ~ \/\\.(?!well-known).* {\r\n        deny all;\r\n    }\r\n}\r\n<\/pre>\n<p><strong>Docker Compose Configuration<\/strong><br \/>\nProject \u101b\u1032\u1037 root directory \u1019\u103e\u102c docker-compose.yml file create \u101c\u102f\u1015\u103a\u1015\u1031\u1038\u1015\u102b\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\nservices:\r\n    web:\r\n        container_name: docker-laravel-nginx\r\n        build:\r\n            context: .\r\n            dockerfile: .\/docker\/nginx\/Dockerfile\r\n        image: nginx:perl\r\n        depends_on:\r\n            - app\r\n        ports:\r\n            - \"8080:80\"\r\n        volumes:\r\n            - .\/:\/var\/www\r\n            - .\/docker\/nginx\/default.conf:\/etc\/nginx\/conf.d\/default.conf\r\n        networks:\r\n            - docker-laravel-network\r\n\r\n    app:\r\n        container_name: docker-laravel-app\r\n        image: php:8.3-fpm\r\n        build:\r\n            context: .\r\n            dockerfile: .\/docker\/php\/Dockerfile\r\n        ports:\r\n            - \"9000:9000\"\r\n        volumes:\r\n            - .\/:\/var\/www\r\n        networks:\r\n            - docker-laravel-network\r\n\r\n    db:\r\n        container_name: docker-laravel-db\r\n        image: mysql:oracle\r\n        ports:\r\n            - \"3308:3306\"\r\n        environment:\r\n            MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}\r\n            MYSQL_DATABASE: ${DB_DATABASE}\r\n            MYSQL_USER: ${DB_USERNAME}\r\n            MYSQL_PASSWORD: ${DB_PASSWORD}\r\n        volumes:\r\n            - dbdata:\/var\/lib\/mysql\r\n        networks:\r\n            - docker-laravel-network\r\n\r\n    artisan:\r\n        container_name: docker-laravel-artisan\r\n        image: php:8.3-fpm\r\n        build:\r\n            context: .\r\n            dockerfile: .\/docker\/php\/Dockerfile\r\n        volumes:\r\n            - .\/:\/var\/www\r\n        entrypoint: [\"php\", \"\/var\/www\/artisan\"]\r\n        networks:\r\n            - docker-laravel-network\r\n\r\nvolumes:\r\n    dbdata:\r\n        driver: local\r\n\r\nnetworks:\r\n    docker-laravel-network:\r\n        driver: bridge\r\n<\/pre>\n<p><strong>Environment Variables<\/strong><br \/>\n\u1011\u102d\u102f\u1037\u1014\u1031\u102c\u1000\u103a .env file \u1019\u103e\u102c DB_HOST \u1006\u102d\u102f\u1010\u1032\u1037 environment variable \u1019\u103e\u102c database service \u101b\u1032\u1037 container name \u1000\u102d\u102f \u1021\u1005\u102c\u1038\u1011\u102d\u102f\u1038\u1015\u1031\u1038\u1015\u102b\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\n#docker-compose.yml\r\ndb:\r\n  container_name: docker-laravel-db\r\n\r\n#.env\r\nDB_HOST=docker-laravel-db\r\n<\/pre>\n<p><strong>Build and Run Your Containers<\/strong><br \/>\n\u1021\u1001\u102f\u1006\u102d\u102f\u101b\u1004\u103a docker setup \u101c\u102f\u1015\u103a\u1015\u103c\u102e\u1038\u1015\u103c\u102e\u1016\u103c\u1005\u103a\u1010\u1032\u1037\u1021\u1010\u103d\u1000\u103a \u1021\u1031\u102c\u1000\u103a\u1015\u102b command \u1000\u102d\u102f \u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1000\u102c container build \u101c\u102f\u1015\u103a\u1015\u102b\u1019\u101a\u103a\u104b<\/p>\n<pre class=\"brush: css; notranslate\" title=\"\">\r\ndocker-compose up -d --build\r\n<\/pre>\n<p>\u1011\u102d\u102f command \u1000\u1010\u1031\u102c\u1037 composer-compose.yml \u1019\u103e\u102c  \u1000\u103c\u1031\u100a\u102c\u1011\u102c\u1038\u1010\u1032\u1037 services \u1010\u103d\u1031\u1000\u102d\u102f build \u101c\u102f\u1015\u103a\u1015\u103c\u102e\u1038 \u1021\u101c\u102f\u1015\u103a\u101c\u102f\u1015\u103a\u1005\u1031\u1019\u103e\u102c\u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b  Containers \u1010\u103d\u1031\u1000\u102d\u102f \u1021\u101c\u102f\u1015\u103a\u101c\u102f\u1015\u103a\u1015\u103c\u102e\u1006\u102d\u102f\u101b\u1004\u103a\u1010\u1031\u102c\u1037 laravel project \u1000\u102d\u102f http:\/\/localhost:8080 \u1019\u103e\u102c \u1010\u103d\u1031\u1037\u1019\u103c\u1004\u103a\u1014\u102d\u102f\u1004\u103a\u1019\u103e\u102c\u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b \u1021\u1006\u102f\u1036\u1038\u1011\u102d\u1016\u1010\u103a\u101b\u103e\u102f\u1015\u1031\u1038\u1010\u1032\u1037\u1021\u1010\u103d\u1000\u103a \u1000\u103b\u1031\u1038\u1007\u1030\u1038\u1010\u1004\u103a\u1015\u102b\u1010\u101a\u103a \u1001\u1004\u103a\u1017\u103b\u104b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u1019\u1004\u103a\u1039\u1002\u101c\u102c\u1015\u102b\u104b \u1000\u103b\u103d\u1014\u103a\u1010\u1031\u102c\u103a\u1000\u1010\u1031\u102c\u1037 Spiceworks Myanmar \u1019\u103e\u102c Backend Developer \u1021\u1014\u1031\u1014\u1032\u1037 \u1010\u102c\u101d\u1014\u103a\u101a\u1030\u101c\u102f\u1015\u103a\u1000\u102d\u102f\u1004\u103a\u1014\u1031\u1010\u1032\u1037 \u101e\u102f\u1010\u101a\u102c\u1019\u102d\u102f\u1038 \u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b Docker \u1019\u102d\u1010\u103a\u1006\u1000\u103a \u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1000\u102d\u102f\u1010\u1031\u102c\u1037 \u1019\u103b\u103e\u101d\u1031\u1015\u1031\u1038\u1011\u102c\u1038\u1015\u103c\u102e\u1038\u1015\u103c\u102e\u1019\u102d\u102f\u1037\u101c\u102d\u102f\u1037 \u101d\u1004\u103a\u101b\u1031\u102c\u1000\u103a\u1016\u1010\u103a\u101b\u103e\u102f\u1014\u102d\u102f\u1004\u103a\u1015\u102b\u1010\u101a\u103a\u104b \u1021\u1001\u102f \u1018\u101c\u1031\u102c\u1037\u1002\u103a\u1019\u103e\u102c\u1010\u1031\u102c\u1037 Docker \u1000\u102d\u102f\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1015\u103c\u102e\u1038<\/p>\n","protected":false},"author":51,"featured_media":12008,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create a local laravel development with Docker - Web Development &amp; Tech Blog | Spiceworks Myanmar<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a local laravel development with Docker - Web Development &amp; Tech Blog | Spiceworks Myanmar\" \/>\n<meta property=\"og:description\" content=\"\u1019\u1004\u103a\u1039\u1002\u101c\u102c\u1015\u102b\u104b \u1000\u103b\u103d\u1014\u103a\u1010\u1031\u102c\u103a\u1000\u1010\u1031\u102c\u1037 Spiceworks Myanmar \u1019\u103e\u102c Backend Developer \u1021\u1014\u1031\u1014\u1032\u1037 \u1010\u102c\u101d\u1014\u103a\u101a\u1030\u101c\u102f\u1015\u103a\u1000\u102d\u102f\u1004\u103a\u1014\u1031\u1010\u1032\u1037 \u101e\u102f\u1010\u101a\u102c\u1019\u102d\u102f\u1038 \u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b Docker \u1019\u102d\u1010\u103a\u1006\u1000\u103a \u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1000\u102d\u102f\u1010\u1031\u102c\u1037 \u1019\u103b\u103e\u101d\u1031\u1015\u1031\u1038\u1011\u102c\u1038\u1015\u103c\u102e\u1038\u1015\u103c\u102e\u1019\u102d\u102f\u1037\u101c\u102d\u102f\u1037 \u101d\u1004\u103a\u101b\u1031\u102c\u1000\u103a\u1016\u1010\u103a\u101b\u103e\u102f\u1014\u102d\u102f\u1004\u103a\u1015\u102b\u1010\u101a\u103a\u104b \u1021\u1001\u102f \u1018\u101c\u1031\u102c\u1037\u1002\u103a\u1019\u103e\u102c\u1010\u1031\u102c\u1037 Docker \u1000\u102d\u102f\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1015\u103c\u102e\u1038\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development &amp; Tech Blog | Spiceworks Myanmar\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-05T09:18:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-content\/uploads\/2024\/07\/cover_create_a_local_laravel_development_with_docker.png\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"366\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Thuta Yar Moe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thuta Yar Moe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/\"},\"author\":{\"name\":\"Thuta Yar Moe\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/#\\\/schema\\\/person\\\/5883aee80b174692301288a1d3a56405\"},\"headline\":\"Create a local laravel development with Docker\",\"datePublished\":\"2024-07-05T09:18:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/\"},\"wordCount\":100,\"image\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/cover_create_a_local_laravel_development_with_docker.png\",\"articleSection\":[\"System\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/\",\"url\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/\",\"name\":\"Create a local laravel development with Docker - Web Development &amp; Tech Blog | Spiceworks Myanmar\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/cover_create_a_local_laravel_development_with_docker.png\",\"datePublished\":\"2024-07-05T09:18:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/#\\\/schema\\\/person\\\/5883aee80b174692301288a1d3a56405\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/cover_create_a_local_laravel_development_with_docker.png\",\"contentUrl\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/cover_create_a_local_laravel_development_with_docker.png\",\"width\":700,\"height\":366},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/create-a-local-laravel-development-with-docker\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a local laravel development with Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/\",\"name\":\"Web Development &amp; Tech Blog | Spiceworks Myanmar\",\"description\":\"Read Spiceworks Myanmar\u2019s blog on web development, design trends, and IT solutions. Stay informed with tips and insights from our experienced developers.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/#\\\/schema\\\/person\\\/5883aee80b174692301288a1d3a56405\",\"name\":\"Thuta Yar Moe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f1801721c7fb06c2ba2c886067bf36bc83b80f6fb00bd1c2b47c6ef27c3360a8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f1801721c7fb06c2ba2c886067bf36bc83b80f6fb00bd1c2b47c6ef27c3360a8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f1801721c7fb06c2ba2c886067bf36bc83b80f6fb00bd1c2b47c6ef27c3360a8?s=96&d=mm&r=g\",\"caption\":\"Thuta Yar Moe\"},\"url\":\"https:\\\/\\\/www.spiceworksmyanmar.com\\\/blog\\\/author\\\/thuta-yar-moe\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a local laravel development with Docker - Web Development &amp; Tech Blog | Spiceworks Myanmar","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/","og_locale":"en_US","og_type":"article","og_title":"Create a local laravel development with Docker - Web Development &amp; Tech Blog | Spiceworks Myanmar","og_description":"\u1019\u1004\u103a\u1039\u1002\u101c\u102c\u1015\u102b\u104b \u1000\u103b\u103d\u1014\u103a\u1010\u1031\u102c\u103a\u1000\u1010\u1031\u102c\u1037 Spiceworks Myanmar \u1019\u103e\u102c Backend Developer \u1021\u1014\u1031\u1014\u1032\u1037 \u1010\u102c\u101d\u1014\u103a\u101a\u1030\u101c\u102f\u1015\u103a\u1000\u102d\u102f\u1004\u103a\u1014\u1031\u1010\u1032\u1037 \u101e\u102f\u1010\u101a\u102c\u1019\u102d\u102f\u1038 \u1016\u103c\u1005\u103a\u1015\u102b\u1010\u101a\u103a\u104b Docker \u1019\u102d\u1010\u103a\u1006\u1000\u103a \u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1000\u102d\u102f\u1010\u1031\u102c\u1037 \u1019\u103b\u103e\u101d\u1031\u1015\u1031\u1038\u1011\u102c\u1038\u1015\u103c\u102e\u1038\u1015\u103c\u102e\u1019\u102d\u102f\u1037\u101c\u102d\u102f\u1037 \u101d\u1004\u103a\u101b\u1031\u102c\u1000\u103a\u1016\u1010\u103a\u101b\u103e\u102f\u1014\u102d\u102f\u1004\u103a\u1015\u102b\u1010\u101a\u103a\u104b \u1021\u1001\u102f \u1018\u101c\u1031\u102c\u1037\u1002\u103a\u1019\u103e\u102c\u1010\u1031\u102c\u1037 Docker \u1000\u102d\u102f\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1015\u103c\u102e\u1038","og_url":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/","og_site_name":"Web Development &amp; Tech Blog | Spiceworks Myanmar","article_published_time":"2024-07-05T09:18:45+00:00","og_image":[{"width":700,"height":366,"url":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-content\/uploads\/2024\/07\/cover_create_a_local_laravel_development_with_docker.png","type":"image\/png"}],"author":"Thuta Yar Moe","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Thuta Yar Moe","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#article","isPartOf":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/"},"author":{"name":"Thuta Yar Moe","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/#\/schema\/person\/5883aee80b174692301288a1d3a56405"},"headline":"Create a local laravel development with Docker","datePublished":"2024-07-05T09:18:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/"},"wordCount":100,"image":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-content\/uploads\/2024\/07\/cover_create_a_local_laravel_development_with_docker.png","articleSection":["System"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/","url":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/","name":"Create a local laravel development with Docker - Web Development &amp; Tech Blog | Spiceworks Myanmar","isPartOf":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#primaryimage"},"image":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-content\/uploads\/2024\/07\/cover_create_a_local_laravel_development_with_docker.png","datePublished":"2024-07-05T09:18:45+00:00","author":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/#\/schema\/person\/5883aee80b174692301288a1d3a56405"},"breadcrumb":{"@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#primaryimage","url":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-content\/uploads\/2024\/07\/cover_create_a_local_laravel_development_with_docker.png","contentUrl":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-content\/uploads\/2024\/07\/cover_create_a_local_laravel_development_with_docker.png","width":700,"height":366},{"@type":"BreadcrumbList","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/create-a-local-laravel-development-with-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.spiceworksmyanmar.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create a local laravel development with Docker"}]},{"@type":"WebSite","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/#website","url":"https:\/\/www.spiceworksmyanmar.com\/blog\/","name":"Web Development &amp; Tech Blog | Spiceworks Myanmar","description":"Read Spiceworks Myanmar\u2019s blog on web development, design trends, and IT solutions. Stay informed with tips and insights from our experienced developers.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.spiceworksmyanmar.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.spiceworksmyanmar.com\/blog\/#\/schema\/person\/5883aee80b174692301288a1d3a56405","name":"Thuta Yar Moe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f1801721c7fb06c2ba2c886067bf36bc83b80f6fb00bd1c2b47c6ef27c3360a8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f1801721c7fb06c2ba2c886067bf36bc83b80f6fb00bd1c2b47c6ef27c3360a8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f1801721c7fb06c2ba2c886067bf36bc83b80f6fb00bd1c2b47c6ef27c3360a8?s=96&d=mm&r=g","caption":"Thuta Yar Moe"},"url":"https:\/\/www.spiceworksmyanmar.com\/blog\/author\/thuta-yar-moe\/"}]}},"_links":{"self":[{"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/posts\/11993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/comments?post=11993"}],"version-history":[{"count":18,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/posts\/11993\/revisions"}],"predecessor-version":[{"id":12013,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/posts\/11993\/revisions\/12013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/media\/12008"}],"wp:attachment":[{"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/media?parent=11993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/categories?post=11993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spiceworksmyanmar.com\/blog\/wp-json\/wp\/v2\/tags?post=11993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}