Skip to content

Commit

Permalink
Merge branch 'release/5.2.0-beta1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mblaschke committed Oct 18, 2016
2 parents 89553d2 + cf6b47b commit 40d746c
Show file tree
Hide file tree
Showing 45 changed files with 586 additions and 597 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
PHP Docker Boilerplate Changelog
==================================

5.2.0-beta1 - 2016-10-18
------------------------
- Add dinghy/dory support
- Switch to mailhog instead of mailcatcher
- Add phpmyadmin
- Switch to ubuntu 16.04 as default
- docker-compose.yml is now using version 2
- PHP debugger can now be switched with variable
- Add PostgreSQL 9.5
- Some minor fixes and cleanups

5.1.3 - 2016-05-25
------------------
- Fix nginx vhost configuration (modular WebDevOps image design)
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#
#++++++++++++++++++++++++++++++++++++++

FROM webdevops/php-apache:ubuntu-14.04
FROM webdevops/php-apache:ubuntu-16.04

ENV PROVISION_CONTEXT "production"

Expand All @@ -53,7 +53,7 @@ COPY provision/ /opt/docker/provision/

COPY app/ /app/

RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-deployment \
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh

# Configure volume/workdir
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
#
#++++++++++++++++++++++++++++++++++++++

FROM webdevops/php-apache-dev:ubuntu-14.04
FROM webdevops/php-apache-dev:ubuntu-16.04

ENV PROVISION_CONTEXT "development"

# Deploy scripts/configurations
COPY etc/ /opt/docker/etc/
COPY provision/ /opt/docker/provision/

RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-main-development boilerplate-deployment \
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-main-development --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh

# Configure volume/workdir
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
#
#++++++++++++++++++++++++++++++++++++++

FROM webdevops/php-apache:ubuntu-14.04
FROM webdevops/php-apache:ubuntu-16.04

ENV PROVISION_CONTEXT "production"

# Deploy scripts/configurations
COPY etc/ /opt/docker/etc/
COPY provision/ /opt/docker/provision/

RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-deployment \
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh

# Configure volume/workdir
Expand Down
7 changes: 3 additions & 4 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
![TYPO3 Docker Boilerplate](https://static.webdevops.io/php-docker-boilerplate.svg)
![PHP Docker Boilerplate](https://static.webdevops.io/php-docker-boilerplate.svg)

[![latest v5.1.3](https://img.shields.io/badge/latest-v5.1.3-green.svg?style=flat)](https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.1.3)
[![latest v5.2.0-beta1](https://img.shields.io/badge/latest-v5.2.0-beta1-green.svg?style=flat)](https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.2.0-beta1)
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mblaschke/php-docker-boilerplate.svg)](http://isitmaintained.com/project/mblaschke/php-docker-boilerplate "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/mblaschke/php-docker-boilerplate.svg)](http://isitmaintained.com/project/mblaschke/php-docker-boilerplate "Percentage of issues still open")

This is an easy customizable docker boilerplate for any PHP-based projects like _Symfony Framework_, _CakePHP_, _Yii_ and many other frameworks or applications.

Expand All @@ -19,6 +17,7 @@ Supports:
- Memcached (disabled)
- Mailcatcher (if no mail sandbox is used, eg. [Vagrant Development VM](https://github.com/mblaschke/vagrant-development))
- FTP server (vsftpd)
- PhpMyAdmin
- maybe more later...

This Docker boilerplate is based on the [Docker best practices](https://docs.docker.com/articles/dockerfile_best-practices/) and doesn't use too much magic. Configuration of each docker container is available in the `docker/` directory - feel free to customize.
Expand Down
261 changes: 133 additions & 128 deletions docker-compose.cloud.yml
Original file line number Diff line number Diff line change
@@ -1,136 +1,141 @@
#######################################
# PHP application Docker container
#
# for this container you have to remove
# following entries from .dockerignore:
#
# etc/*
# provision/*
# app/*
#
#######################################
app:
build: .
dockerfile: Dockerfile.cloud
links:
- mysql
#- postgres
#- mail
#- solr
#- elasticsearch
#- redis
#- memcached
#- ftp
ports:
- "8000:80"
- "8443:443"
- "10022:22"
volumes_from:
- storage
env_file:
- etc/environment.yml
- etc/environment.production.yml
version: '2'
services:
#######################################
# PHP application Docker container
#
# for this container you have to remove
# following entries from .dockerignore:
#
# etc/*
# provision/*
# app/*
#
#######################################
app:
build:
context: .
dockerfile: Dockerfile.cloud
links:
- mysql
#- postgres
#- mail
#- solr
#- elasticsearch
#- redis
#- memcached
#- ftp
ports:
- "8000:80"
- "8443:443"
- "10022:22"
volumes_from:
- storage
env_file:
- etc/environment.yml
- etc/environment.production.yml

#######################################
# MySQL server
#######################################
mysql:
build: docker/mysql
#dockerfile: MySQL-5.5
dockerfile: MySQL-5.6
#dockerfile: MySQL-5.7
#dockerfile: MariaDB-5.5
#dockerfile: MariaDB-10
#dockerfile: Percona-5.5
#dockerfile: Percona-5.6
volumes_from:
- storage
env_file:
- etc/environment.yml
- etc/environment.production.yml
#######################################
# MySQL server
#######################################
mysql:
build:
context: docker/mysql/
#dockerfile: MySQL-5.5.Dockerfile
dockerfile: MySQL-5.6.Dockerfile
#dockerfile: MySQL-5.7.Dockerfile
#dockerfile: MariaDB-5.5.Dockerfile
#dockerfile: MariaDB-10.Dockerfile
#dockerfile: Percona-5.5.Dockerfile
#dockerfile: Percona-5.6.Dockerfile
#dockerfile: Percona-5.7.Dockerfile
volumes_from:
- storage
env_file:
- etc/environment.yml
- etc/environment.production.yml

#######################################
# PostgreSQL server
#######################################
#postgres:
# build: docker/postgres/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml
#######################################
# PostgreSQL server
#######################################
#postgres:
# build:
# context: docker/postgres/
# dockerfile: Postgres-9.4.Dockerfile
# dockerfile: Postgres-9.5.Dockerfile
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# Solr server
#######################################
#solr:
# build: docker/solr/
# volumes_from:
# - storage
# environment:
# - SOLR_STORAGE=/storage/solr/server-master/
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml
#######################################
# Solr server
#######################################
#solr:
# build:
# context: docker/solr/
# volumes_from:
# - storage
# environment:
# - SOLR_STORAGE=/storage/solr/server-master/
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# Elasticsearch
#######################################
#elasticsearch:
# build: docker/elasticsearch/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml
#######################################
# Elasticsearch
#######################################
#elasticsearch:
# build:
# context: docker/elasticsearch/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# Redis
#######################################
#redis:
# build: docker/redis/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml
#######################################
# Redis
#######################################
#redis:
# build:
# context: docker/redis/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# Memcached
#######################################
#memcached:
# build: docker/memcached/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml
#######################################
# Memcached
#######################################
#memcached:
# build:
# context: docker/memcached/
# volumes_from:
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# Mailcatcher
#######################################
#mail:
# build: docker/mail/
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml
#######################################
# FTP (vsftpd)
#######################################
#ftp:
# build:
# context: docker/vsftpd/
# volumes_from:
# - sourcecode
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# FTP (vsftpd)
#######################################
#ftp:
# build: docker/vsftpd/
# volumes_from:
# - sourcecode
# - storage
# env_file:
# - etc/environment.yml
# - etc/environment.production.yml

#######################################
# Storage
#######################################
storage:
build: docker/storage/
volumes:
- /storage
#######################################
# Storage
#######################################
storage:
build:
context: docker/storage/
volumes:
- /storage
Loading

0 comments on commit 40d746c

Please sign in to comment.