Resources for keeping track of our Docker images.
Github Repo and Docker Hub.
| 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.
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.
docker-compose up -ddocker-compose up. You will see a stream of logs for every container running.docker-compose stop or docker-compose downdocker-compose logsdocker-compose exec SERVICE_NAME COMMAND where COMMAND is whatever you want to run. All project files are found in the /var/www/html folder in the container.docker-compose.yml Fileversion: '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