Skip to content

Commit 3d22bc4

Browse files
committed
add docker compose test
1 parent bf296ee commit 3d22bc4

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.drone.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ pipeline:
1818
image: fpfis/php71-build
1919
commands:
2020
- php index.php
21+
22+
test-docker-compose
23+
image: docker pull docker/compose
24+
commands:
25+
- docker-compose up

docker-compose.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: '2'
2+
services:
3+
4+
# Define a PHP webserver
5+
php-webserver:
6+
# Use a PHP image with apache
7+
image: fpfis/php56-dev
8+
# Define settings
9+
environment:
10+
- XDEBUG=true
11+
- DOCUMENT_ROOT=/app/build
12+
# Mount a local volume in the container
13+
volumes:
14+
- ./:/app/build
15+
# Share the container port with the host
16+
ports:
17+
- 8080:8080
18+
19+
# Define a mysql service
20+
mysql:
21+
image: fpfis/mysql56
22+
23+

0 commit comments

Comments
 (0)