Created
June 12, 2018 16:53
-
-
Save kastaneda/eb0dca61f0c6b4ef0b6b6792f5286e89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
php: | |
image: php:7-fpm | |
volumes: | |
- ./app:/app:rw | |
- ./php-misc.ini:/usr/local/etc/php/conf.d/docker-php.ini:ro | |
web: | |
image: nginx:latest | |
ports: | |
- '8080:80' | |
volumes: | |
- ./app:/app:rw | |
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name localhost; | |
root /app/public; | |
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
fastcgi_pass php:9000; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; | |
fastcgi_param DOCUMENT_ROOT $realpath_root; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_errors=1 | |
date.timezone=Europe/Kiev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment