Skip to content

Commit

Permalink
add docker compose test
Browse files Browse the repository at this point in the history
  • Loading branch information
gervasek committed Mar 8, 2018
1 parent bf296ee commit dfd1aa4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ pipeline:
image: fpfis/php71-build
commands:
- php index.php

test-docker-compose:
image: docker pull docker/compose
commands:
- docker-compose up

23 changes: 23 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2'
services:

# Define a PHP webserver
php-webserver:
# Use a PHP image with apache
image: fpfis/php56-dev
# Define settings
environment:
- XDEBUG=true
- DOCUMENT_ROOT=/app/build
# Mount a local volume in the container
volumes:
- ./:/app/build
# Share the container port with the host
ports:
- 8080:8080

# Define a mysql service
mysql:
image: fpfis/mysql56


0 comments on commit dfd1aa4

Please sign in to comment.