Skip to content

Commit

Permalink
start for simple start
Browse files Browse the repository at this point in the history
  • Loading branch information
sneezh committed May 10, 2020
1 parent 9e006af commit b017010
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 38 deletions.
7 changes: 0 additions & 7 deletions .env

This file was deleted.

2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_NAME=appname
NGINX_PORT=88
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
volumes/mysql
docker-compose.yml
.env
18 changes: 18 additions & 0 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'
services:
nginx:
image: nginx:alpine
container_name: ${APP_NAME}_nginx
ports:
- ${NGINX_PORT}:80
volumes:
- ./volumes/nginx/default.conf:/etc/nginx/conf.d/default.conf:cached
- ./:/var/www/html:cached
php:
user: 1000:www-data
image: dvlpm/php7.4-dev:latest
volumes:
- ./:/var/www/html
- ./volumes/php/conf.d/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
environment:
XDEBUG_CONFIG: remote_host=192.168.99.1
26 changes: 0 additions & 26 deletions docker-compose.yml

This file was deleted.

4 changes: 0 additions & 4 deletions public/index.php

This file was deleted.

5 changes: 5 additions & 0 deletions volumes/php/conf.d/docker-php-ext-xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
display_errors = 1

zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_autostart=on

0 comments on commit b017010

Please sign in to comment.