Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (64 sloc) 1.54 KB
version: '3'
services:
httpd:
build: ./services/httpd
hostname: httpd
network_mode: bridge
ports:
- "80"
- "443"
volumes:
- ./www:/usr/local/apache2/htdocs
links:
- php:php
php:
build: ./services/php
hostname: php
network_mode: bridge
volumes:
- ./www:/usr/local/apache2/htdocs
links:
- mysql:db
- mailhog:mailhog
- blackfire:blackfire
environment:
LOCAL_USER_ID: ${LOCAL_USER_ID}
XDEBUG_CONFIG: remote_connect_back=${XDEBUG_REMOTE_CONNECT_BACK} idekey=${XDEBUG_IDEKEY} remote_host=${XDEBUG_REMOTE_HOST} remote_port=${XDEBUG_REMOTE_PORT}
mysql:
build: ./services/mysql
hostname: mysql
network_mode: bridge
volumes:
- mysql-data:/var/lib/mysql
- ./www:/usr/local/apache2/htdocs
ports:
- "3306"
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
blackfire:
image: blackfire/blackfire:1.15.0
network_mode: bridge
environment:
BLACKFIRE_SERVER_ID: ${BLACKFIRE_SERVER_ID}
BLACKFIRE_SERVER_TOKEN: ${BLACKFIRE_SERVER_TOKEN}
phpmyadmin:
image: phpmyadmin/phpmyadmin:4.7.7-1
network_mode: bridge
ports:
- "80"
links:
- mysql:db
environment:
PMA_USER: root
PMA_PASSWORD: ${MYSQL_ROOT_PASSWORD}
mailhog:
image: mailhog/mailhog:v1.0.0
network_mode: bridge
ports:
- "1025"
- "8025"
volumes:
mysql-data: