31 lines
509 B
YAML
31 lines
509 B
YAML
version: '3'
|
|
|
|
networks:
|
|
test:
|
|
driver: bridge
|
|
|
|
services:
|
|
|
|
php:
|
|
container_name: test-php
|
|
build: './php'
|
|
networks:
|
|
- test
|
|
volumes:
|
|
- ./php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
|
|
- ./app:/var/www
|
|
|
|
nginx:
|
|
container_name: test-nginx
|
|
image: nginx:latest
|
|
restart: unless-stopped
|
|
networks:
|
|
- test
|
|
volumes:
|
|
- ./nginx/vhost.conf:/etc/nginx/conf.d/default.conf
|
|
- ./app:/var/www
|
|
ports:
|
|
- '8888:80'
|
|
links:
|
|
- php
|