Add PHP
This commit is contained in:
22
PHP/docker-compose.yml
Normal file
22
PHP/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
php:
|
||||
container_name: php
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
volumes:
|
||||
- './www:/var/www/html'
|
||||
- './php-logging.conf:/usr/local/etc/php-fpm.d/zz-log.conf'
|
||||
|
||||
nginx:
|
||||
container_name: nginx
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- '80:80'
|
||||
links:
|
||||
- 'php'
|
||||
volumes:
|
||||
- './www:/var/www/html'
|
||||
- './nginx.conf:/etc/nginx/conf.d/nginx.conf'
|
||||
depends_on:
|
||||
- php
|
||||
Reference in New Issue
Block a user