Start
This commit is contained in:
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user