MVP Standards and Process

Docker

Resources for keeping track of our Docker images.

Table of Contents

Docker PHP-FPM

Github Repo and Docker Hub.

Tags

Tag Description
latest Latest production build
dev Latest development focused build
dev-7.3 Mirrors the development build but drops the PHP version to 7.3

The development builds exactly mirror the production build and include XDebug. The Github repo includes instructions for settings up VS Code with XDebug on the development build.

Docker Nginx

Github Repo and Docker Hub.

Tag Description
latest Latest production build
dev Latest development focused build

The development build mirrors the production build but removes caching and logging configs.

Common Docker Commands

Sample docker-compose.yml File

version: '3.3'
services:
    mariadb:
        image: mariadb:10.4
        environment:
            MYSQL_ROOT_PASSWORD: password
            MYSQL_DATABASE: database
            MYSQL_USER: user
            MYSQL_PASSWORD: password
        ports:
            - 3306:3306
        volumes:
            - data:/var/lib/mysql:cached
        networks:
            - mvpnet

    nginx:
        image: mvpdesign/nginx:dev
        volumes:
            - .:/var/www/html:cached
        ports:
            - 8000:80
            - 443:443
        networks:
            - mvpnet

    php-fpm:
        image: mvpdesign/php-fpm:dev
        volumes:
            - .:/var/www/html:cached
            - ./data/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini:cached
        networks:
            - mvpnet

networks:
    mvpnet:
        driver: bridge

volumes:
    data:
        driver: local