/docker-lamp-php7.2

Linux/Apache/MySQL/PHP development environment optimized for xt:Commerce and TYPO3.

Primary LanguagePHP

Docker LAMP

Linux/Apache/MySQL/PHP development environment optimized for xt:Commerce and TYPO3.

Features

  • PHP 7.2 (CLI & Apache 2.0 Handler)
  • ionCube PHP Loader
  • Zend OPcache
  • Xdebug (Set breakpoint in code with function xdebug_break())
  • Composer
  • MySQL 5.7 (Container is stateless and data is mapped to ./mysql/data directory)
  • phpMyAdmin
  • Colored bash prompt with git support
  • Imagemagick
  • Default locale de_DE.UTF-8
  • Default localtime Europe/Berlin

Web access

http://localhost:8080/

phpMyAdmin access

http://localhost:8282/

MySQL access

Host internal: db
Port internal: 3306

Host external/remote: localhost
Port external/remote: 8181

User: user
Password: password
Database: database

Root Password: root

Build

If you are running under linux, please check your users pid and change pid in file ./php/Dockerfile. Example: RUN usermod -o -u 1000 www-data

docker-compose build

Run

docker-compose up

or

docker-compose up -d

Param -d runs container in background (detach)

Bash into

docker exec -ti docker-lamp-php72_php_1 /bin/bash

Container name is docker-lamp-php72_php_1. Change it to your container name.

Stop

docker-compose down

To stop all containers AND kill all volumes docker-compose down --volumes