Skip to content

Commit 07c967f

Browse files
committed
full working backend environment
1 parent e172a37 commit 07c967f

File tree

4 files changed

+22
-23
lines changed

4 files changed

+22
-23
lines changed

.docker/mysql/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mysql:5.7
2+
3+
4+
RUN ["apt-get", "update"]
5+
RUN ["apt-get", "install", "-y", "vim"]
6+
7+
RUN echo "default_authentication_plugin= mysql_native_password" >> /etc/mysql/my.cnf
8+
9+
RUN start mysql
10+
11+
EXPOSE 3306
12+
13+

SF4_project/var/log/dev.log

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
[2018-07-14 03:00:36] php.DEBUG: Warning: filemtime(): stat failed for D:\06-DEV\dockerPHP\SF4_project\config\routes\annotations.yaml {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/home/wwwroot/sf4/vendor/symfony/config/Resource/FileResource.php\",\"line\":63,\"trace\":[{\"file\":\"/home/wwwroot/sf4/vendor/symfony/config/Resource/SelfCheckingResourceChecker.php\",\"line\":34,\"function\":\"isFresh\",\"class\":\"Symfony\\\\Component\\\\Config\\\\Resource\\\\FileResource\",\"type\":\"->\"}],\"count\":1})"} []
1212
[2018-07-14 03:00:37] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"ad2f06","_route":"_wdt"},"request_uri":"http://localhost/_wdt/ad2f06","method":"GET"} []
1313
[2018-07-14 03:00:38] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /favicon.ico" (from "http://localhost/")" at /home/wwwroot/sf4/vendor/symfony/http-kernel/EventListener/RouterListener.php line 144 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /favicon.ico\" (from \"http://localhost/\") at /home/wwwroot/sf4/vendor/symfony/http-kernel/EventListener/RouterListener.php:144, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /home/wwwroot/sf4/var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php:170)"} []
14+
[2018-07-14 03:44:03] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"a4ded1","_route":"_wdt"},"request_uri":"http://localhost/_wdt/a4ded1","method":"GET"} []
15+
[2018-07-14 14:10:25] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"77af26","_route":"_wdt"},"request_uri":"http://localhost/_wdt/77af26","method":"GET"} []
16+
[2018-07-14 14:10:25] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /favicon.ico" (from "http://localhost/")" at /home/wwwroot/sf4/vendor/symfony/http-kernel/EventListener/RouterListener.php line 144 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /favicon.ico\" (from \"http://localhost/\") at /home/wwwroot/sf4/vendor/symfony/http-kernel/EventListener/RouterListener.php:144, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /home/wwwroot/sf4/var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php:170)"} []
17+
[2018-07-14 14:23:36] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"4e065f","_route":"_wdt"},"request_uri":"http://localhost/_wdt/4e065f","method":"GET"} []

docker-compose.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,17 @@ services:
1212
- php
1313

1414
mysql:
15-
image: mysql
15+
image: mysql:5.7
1616
container_name: sf4_mysql
1717
volumes:
1818
- .docker/data/db:/var/lib/mysql
19+
ports:
20+
- 3306:3306
1921
environment:
2022
MYSQL_ROOT_PASSWORD: root
2123
MYSQL_DATABASE: sf4
2224
MYSQL_USER: sf4
2325
MYSQL_PASSWORD: sf4
24-
ports:
25-
# just if you also want to access it directly from you host
26-
# node neede for phpmyadmin
27-
- "3306:3306"
2826

2927
php:
3028
build: .docker/php
@@ -40,12 +38,13 @@ services:
4038
phpmyadmin:
4139
image: phpmyadmin/phpmyadmin
4240
container_name: sf4_phpmyadmin
41+
restart: always
4342
ports:
4443
- 8080:80
4544
links:
4645
- mysql
4746
environment:
48-
PMA_HOST: mysql
47+
PMA_HOST: mysql
4948

5049
maildev:
5150
image: djfarrelly/maildev

site.conf

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)