This commit is contained in:
2022-11-28 10:13:17 +08:00
commit 283bac61eb
7 changed files with 83 additions and 0 deletions

30
docker-compose.yml Normal file
View 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