nb-test/docker-compose.yml

31 lines
541 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
- ./index.php:/var/www/index.php
nginx:
container_name: test-nginx
image: nginx:latest
restart: unless-stopped
networks:
- test
volumes:
- ./nginx/vhost.conf:/etc/nginx/conf.d/default.conf
- ./index.php:/var/www/index.php
ports:
- '8888:80'
links:
- php