-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
vendor/ | ||
.idea/ | ||
.vs/ | ||
.vscode/ | ||
.DS_Store | ||
composer.lock | ||
debug.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"log": true, | ||
"name": "XDebug", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9002, | ||
"pathMappings": { | ||
"/var/www/html": "${workspaceRoot}" | ||
}, | ||
"ignore": [ | ||
"**/vendor/**/*.php" | ||
], | ||
"hostname": "localhost" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Docker compose Up", | ||
"type": "shell", | ||
"command": "cd docker && docker-compose --env-file .env up -d" | ||
} | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#PHP | ||
PHP_CONTAINER_NAME="php-sanitize" | ||
PHP_PORT=80 | ||
XDEBUG_REMOTE_PORT=9000 | ||
|
||
NETWORK_NAME="php-sanitize" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: "3.5" | ||
services: | ||
|
||
php: | ||
container_name: ${PHP_CONTAINER_NAME} | ||
image: ${PHP_CONTAINER_NAME} | ||
build: | ||
context: ./php | ||
volumes: | ||
- "../.:/var/www/html" | ||
ports: | ||
- "${PHP_PORT}:80" | ||
restart: always | ||
environment: | ||
XDEBUG_CONFIG: remote_port=${XDEBUG_REMOTE_PORT} | ||
networks: | ||
- backend | ||
|
||
networks: | ||
backend: | ||
name: ${NETWORK_NAME} | ||
driver: bridge |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM php:7.3-apache | ||
|
||
RUN apt-get update & apt-get install -y | ||
|
||
#composer | ||
RUN apt-get update | ||
RUN apt-get install -y git zip unzip zlib1g-dev libzip-dev | ||
RUN apt-get -y autoremove & apt-get clean & rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
RUN docker-php-ext-install zip pcntl bcmath | ||
RUN cd /tmp && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer | ||
|
||
#xdebug | ||
RUN pecl install xdebug-2.9.4 && docker-php-ext-enable xdebug | ||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
xdebug.remote_host="host.docker.internal" | ||
|
||
xdebug.remote_autostart=1 | ||
xdebug.remote_enable=1 | ||
xdebug.cli_color=1 | ||
|
||
xdebug.remote_handler=dbgp | ||
xdebug.remote_mode=req |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
## up containers | ||
|
||
```bash | ||
docker-compose --env-file .env up -d | ||
``` | ||
|
||
## down containers | ||
|
||
```bash | ||
docker-compose down | ||
``` |
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
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