Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Docker LAMP stack:
Browse files Browse the repository at this point in the history
1) Added example tools to php-fpm image.
2) Switched from MariaDB to MySQL docker image.
3) Added a sample image build based on docker MySQL image to fix Windows Docker Toolbox issue.
4) Updated README.md links and added extra info for Docker Toolbox. Fixed project name.
  • Loading branch information
akhomy committed Apr 6, 2018
1 parent ba70833 commit 60e04d0
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 10 deletions.
19 changes: 13 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog
## Docker-based LAMP stack 1.0.0

## Docker Compose LAMP stack 1.0.0
* Initial release.

## Docker-based LAMP stack 1.1.0
## Docker Compose LAMP stack 1.1.0
* Fixed IP ranges in docker-compose and README.
* Added DRUSH and PHP_SHOW_ERRORS variables for PHP-FPM container.
* Added DOCUMENT_ROOT as example variable for using the site in subfolders.
Expand All @@ -11,22 +12,28 @@
* Added references to MongoDB, Node.js in README.
* Started section in the documentation for Docker Toolbox.

## Docker-based LAMP stack 1.2.0
## Docker Compose LAMP stack 1.2.0
* Added Docker Toolbox instruction and update base README.
* Added build image for the PHP-FPM.
* Changed base config, runtime directories structure.
* Added docs folder.

## Docker-based LAMP stack 1.3.0
## Docker Compose LAMP stack 1.3.0
* Switched to the official Mailhog image.

## Docker-based LAMP stack 1.4.0
## Docker Compose LAMP stack 1.4.0
* Added IP for PHP-FPM container.
* Checked work of Selenium and PHP-FPM.

## Docker-based LAMP stack 1.5.0
## Docker Compose LAMP stack 1.5.0
* Updated Node image to the last node:alpine version.
* Updated Solr image to the alpine-6 version.
* Updated Postgres image to the postgres:alpine version.
* Updated Redis image to the redis:alpine version.
* Updated Memcached image to the memcahed:alpine version.

## Docker Compose LAMP stack 1.6.0
* Added example tools to php-fpm image.
* Switched from MariaDB to MySQL docker image.
* Added a sample image build based on docker MySQL image to fix Windows Docker Toolbox issue.
* Updated README.md links and added extra info for Docker Toolbox.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Based on the Docker images, built to be fast, small and extendable LAMP stack.
* [Solr](https://github.com/docker-solr/docker-solr)
* [PhpMyAdmin](https://github.com/phpmyadmin/docker)
* [Adminer](https://github.com/TimWolla/docker-adminer)
* [MariaDB](https://github.com/docker-library/mariadb)
* [MySQL](https://github.com/docker-library/mysql)
* [PostgreSQL](https://github.com/docker-library/postgres)
* [MongoDB](https://github.com/docker-library/mongo)
* [Redis](https://github.com/docker-library/redis)
Expand All @@ -32,7 +32,7 @@ The LAMP stack consists of the following containers:
| Solr | 6-alpine | solr | [solr] | |
| PhpMyAdmin | latest | phpmyadmin | [phpmyadmin/phpmyadmin] ||
| Adminer | latest | adminer | [adminer] | |
| MariaDB | latest | mariadb | [mariadb] ||
| MySQL | latest | mysql | [mysql] ||
| PostgreSQL | postgres:alpine | postgres | [postgres] | |
| MongoDB | latest | mongo | [mongo] | |
| Redis | redis:alpine | redis | [redis] | |
Expand Down Expand Up @@ -93,6 +93,16 @@ you can attach other containers to some other ports, like `8080`, `9080`, etc...
You can edit your system host file for accessing some containers via domain name by adding line (or something like this based on your IP and domains, don't forget to change `extra_hosts` in `docker-compose.yml`) like this:
`192.168.99.100 site.dockerlamp`

##### Docker Toolbox Known Issues
* (MariaDB doesn't start) https://github.com/a-kom/docker-compose-lamp/issues/5
* (MariaDB is aborting always) https://github.com/a-kom/docker-compose-lamp/issues/4

If you want to archive your project on Linux and extract to use on Windows with Docker Toolbox just remove `ibdata` and `ib_logfile*` files in your MySQL data directory. Uncomment in `docker-compose.yml` section `# build: docker/images/mysql/.` and remove section `image: mysql`. Then run a command:
`docker-compose stop && docker-compose rm -f && docker-compose up --build -d`
To verify work check that MySQL container run a command:
`docker-compose ps`.


#### MacOS
Similar to Windows section instruction.

Expand Down Expand Up @@ -121,7 +131,7 @@ See READMEs for more details, like environment variables for images:
* [Solr](https://github.com/docker-solr/docker-solr)
* [PhpMyAdmin](https://github.com/phpmyadmin/docker)
* [Adminer](https://github.com/TimWolla/docker-adminer)
* [MariaDB](https://github.com/docker-library/mariadb)
* [MySQL](https://github.com/docker-library/mysql)
* [PostgreSQL](https://github.com/docker-library/postgres)
* [MongoDB](https://github.com/docker-library/mongo)
* [Redis](https://github.com/docker-library/redis)
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ services:

################ Database images.
mysql:
image: mariadb
image: mysql
# build: docker/images/mysql/.
volumes:
- ./docker/runtime/mysql/lib:/var/lib/mysql
environment:
Expand Down
4 changes: 4 additions & 0 deletions docker/images/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# mysql
FROM mysql
COPY conf/* /etc/mysql/conf.d/
RUN chmod a-w /etc/mysql/conf.d/*
3 changes: 3 additions & 0 deletions docker/images/mysql/conf/windows.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[mysqld]
innodb_use_native_aio=0

0 comments on commit 60e04d0

Please sign in to comment.