Skip to content

Commit 40d746c

Browse files
committed
Merge branch 'release/5.2.0-beta1'
2 parents 89553d2 + cf6b47b commit 40d746c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+586
-597
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
PHP Docker Boilerplate Changelog
22
==================================
33

4+
5.2.0-beta1 - 2016-10-18
5+
------------------------
6+
- Add dinghy/dory support
7+
- Switch to mailhog instead of mailcatcher
8+
- Add phpmyadmin
9+
- Switch to ubuntu 16.04 as default
10+
- docker-compose.yml is now using version 2
11+
- PHP debugger can now be switched with variable
12+
- Add PostgreSQL 9.5
13+
- Some minor fixes and cleanups
14+
415
5.1.3 - 2016-05-25
516
------------------
617
- Fix nginx vhost configuration (modular WebDevOps image design)

Dockerfile.cloud

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#
4444
#++++++++++++++++++++++++++++++++++++++
4545

46-
FROM webdevops/php-apache:ubuntu-14.04
46+
FROM webdevops/php-apache:ubuntu-16.04
4747

4848
ENV PROVISION_CONTEXT "production"
4949

@@ -53,7 +53,7 @@ COPY provision/ /opt/docker/provision/
5353

5454
COPY app/ /app/
5555

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

5959
# Configure volume/workdir

Dockerfile.development

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
#
4444
#++++++++++++++++++++++++++++++++++++++
4545

46-
FROM webdevops/php-apache-dev:ubuntu-14.04
46+
FROM webdevops/php-apache-dev:ubuntu-16.04
4747

4848
ENV PROVISION_CONTEXT "development"
4949

5050
# Deploy scripts/configurations
5151
COPY etc/ /opt/docker/etc/
5252
COPY provision/ /opt/docker/provision/
5353

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

5757
# Configure volume/workdir

Dockerfile.production

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
#
4444
#++++++++++++++++++++++++++++++++++++++
4545

46-
FROM webdevops/php-apache:ubuntu-14.04
46+
FROM webdevops/php-apache:ubuntu-16.04
4747

4848
ENV PROVISION_CONTEXT "production"
4949

5050
# Deploy scripts/configurations
5151
COPY etc/ /opt/docker/etc/
5252
COPY provision/ /opt/docker/provision/
5353

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

5757
# Configure volume/workdir

README.md

100644100755
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
![TYPO3 Docker Boilerplate](https://static.webdevops.io/php-docker-boilerplate.svg)
1+
![PHP Docker Boilerplate](https://static.webdevops.io/php-docker-boilerplate.svg)
22

3-
[![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)
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)
44
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)
5-
[![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")
6-
[![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")
75

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

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

2423
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.

docker-compose.cloud.yml

+133-128
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,141 @@
1-
#######################################
2-
# PHP application Docker container
3-
#
4-
# for this container you have to remove
5-
# following entries from .dockerignore:
6-
#
7-
# etc/*
8-
# provision/*
9-
# app/*
10-
#
11-
#######################################
12-
app:
13-
build: .
14-
dockerfile: Dockerfile.cloud
15-
links:
16-
- mysql
17-
#- postgres
18-
#- mail
19-
#- solr
20-
#- elasticsearch
21-
#- redis
22-
#- memcached
23-
#- ftp
24-
ports:
25-
- "8000:80"
26-
- "8443:443"
27-
- "10022:22"
28-
volumes_from:
29-
- storage
30-
env_file:
31-
- etc/environment.yml
32-
- etc/environment.production.yml
1+
version: '2'
2+
services:
3+
#######################################
4+
# PHP application Docker container
5+
#
6+
# for this container you have to remove
7+
# following entries from .dockerignore:
8+
#
9+
# etc/*
10+
# provision/*
11+
# app/*
12+
#
13+
#######################################
14+
app:
15+
build:
16+
context: .
17+
dockerfile: Dockerfile.cloud
18+
links:
19+
- mysql
20+
#- postgres
21+
#- mail
22+
#- solr
23+
#- elasticsearch
24+
#- redis
25+
#- memcached
26+
#- ftp
27+
ports:
28+
- "8000:80"
29+
- "8443:443"
30+
- "10022:22"
31+
volumes_from:
32+
- storage
33+
env_file:
34+
- etc/environment.yml
35+
- etc/environment.production.yml
3336

34-
#######################################
35-
# MySQL server
36-
#######################################
37-
mysql:
38-
build: docker/mysql
39-
#dockerfile: MySQL-5.5
40-
dockerfile: MySQL-5.6
41-
#dockerfile: MySQL-5.7
42-
#dockerfile: MariaDB-5.5
43-
#dockerfile: MariaDB-10
44-
#dockerfile: Percona-5.5
45-
#dockerfile: Percona-5.6
46-
volumes_from:
47-
- storage
48-
env_file:
49-
- etc/environment.yml
50-
- etc/environment.production.yml
37+
#######################################
38+
# MySQL server
39+
#######################################
40+
mysql:
41+
build:
42+
context: docker/mysql/
43+
#dockerfile: MySQL-5.5.Dockerfile
44+
dockerfile: MySQL-5.6.Dockerfile
45+
#dockerfile: MySQL-5.7.Dockerfile
46+
#dockerfile: MariaDB-5.5.Dockerfile
47+
#dockerfile: MariaDB-10.Dockerfile
48+
#dockerfile: Percona-5.5.Dockerfile
49+
#dockerfile: Percona-5.6.Dockerfile
50+
#dockerfile: Percona-5.7.Dockerfile
51+
volumes_from:
52+
- storage
53+
env_file:
54+
- etc/environment.yml
55+
- etc/environment.production.yml
5156

52-
#######################################
53-
# PostgreSQL server
54-
#######################################
55-
#postgres:
56-
# build: docker/postgres/
57-
# volumes_from:
58-
# - storage
59-
# env_file:
60-
# - etc/environment.yml
61-
# - etc/environment.production.yml
57+
#######################################
58+
# PostgreSQL server
59+
#######################################
60+
#postgres:
61+
# build:
62+
# context: docker/postgres/
63+
# dockerfile: Postgres-9.4.Dockerfile
64+
# dockerfile: Postgres-9.5.Dockerfile
65+
# volumes_from:
66+
# - storage
67+
# env_file:
68+
# - etc/environment.yml
69+
# - etc/environment.production.yml
6270

63-
#######################################
64-
# Solr server
65-
#######################################
66-
#solr:
67-
# build: docker/solr/
68-
# volumes_from:
69-
# - storage
70-
# environment:
71-
# - SOLR_STORAGE=/storage/solr/server-master/
72-
# env_file:
73-
# - etc/environment.yml
74-
# - etc/environment.production.yml
71+
#######################################
72+
# Solr server
73+
#######################################
74+
#solr:
75+
# build:
76+
# context: docker/solr/
77+
# volumes_from:
78+
# - storage
79+
# environment:
80+
# - SOLR_STORAGE=/storage/solr/server-master/
81+
# env_file:
82+
# - etc/environment.yml
83+
# - etc/environment.production.yml
7584

76-
#######################################
77-
# Elasticsearch
78-
#######################################
79-
#elasticsearch:
80-
# build: docker/elasticsearch/
81-
# volumes_from:
82-
# - storage
83-
# env_file:
84-
# - etc/environment.yml
85-
# - etc/environment.production.yml
85+
#######################################
86+
# Elasticsearch
87+
#######################################
88+
#elasticsearch:
89+
# build:
90+
# context: docker/elasticsearch/
91+
# volumes_from:
92+
# - storage
93+
# env_file:
94+
# - etc/environment.yml
95+
# - etc/environment.production.yml
8696

87-
#######################################
88-
# Redis
89-
#######################################
90-
#redis:
91-
# build: docker/redis/
92-
# volumes_from:
93-
# - storage
94-
# env_file:
95-
# - etc/environment.yml
96-
# - etc/environment.production.yml
97+
#######################################
98+
# Redis
99+
#######################################
100+
#redis:
101+
# build:
102+
# context: docker/redis/
103+
# volumes_from:
104+
# - storage
105+
# env_file:
106+
# - etc/environment.yml
107+
# - etc/environment.production.yml
97108

98-
#######################################
99-
# Memcached
100-
#######################################
101-
#memcached:
102-
# build: docker/memcached/
103-
# volumes_from:
104-
# - storage
105-
# env_file:
106-
# - etc/environment.yml
107-
# - etc/environment.production.yml
109+
#######################################
110+
# Memcached
111+
#######################################
112+
#memcached:
113+
# build:
114+
# context: docker/memcached/
115+
# volumes_from:
116+
# - storage
117+
# env_file:
118+
# - etc/environment.yml
119+
# - etc/environment.production.yml
108120

109-
#######################################
110-
# Mailcatcher
111-
#######################################
112-
#mail:
113-
# build: docker/mail/
114-
# env_file:
115-
# - etc/environment.yml
116-
# - etc/environment.production.yml
121+
#######################################
122+
# FTP (vsftpd)
123+
#######################################
124+
#ftp:
125+
# build:
126+
# context: docker/vsftpd/
127+
# volumes_from:
128+
# - sourcecode
129+
# - storage
130+
# env_file:
131+
# - etc/environment.yml
132+
# - etc/environment.production.yml
117133

118-
#######################################
119-
# FTP (vsftpd)
120-
#######################################
121-
#ftp:
122-
# build: docker/vsftpd/
123-
# volumes_from:
124-
# - sourcecode
125-
# - storage
126-
# env_file:
127-
# - etc/environment.yml
128-
# - etc/environment.production.yml
129-
130-
#######################################
131-
# Storage
132-
#######################################
133-
storage:
134-
build: docker/storage/
135-
volumes:
136-
- /storage
134+
#######################################
135+
# Storage
136+
#######################################
137+
storage:
138+
build:
139+
context: docker/storage/
140+
volumes:
141+
- /storage

0 commit comments

Comments
 (0)