File tree Expand file tree Collapse file tree 11 files changed +25
-67
lines changed Expand file tree Collapse file tree 11 files changed +25
-67
lines changed Original file line number Diff line number Diff line change 11# Docker
22DOCKER_PREFIX=skeleton
3- DOCKER_WORK_DIR=/var/www/backend
3+ DOCKER_WORK_DIR=/var/www/html
44
55# Nginx
66NGINX_VERSION=latest
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ services:
3535 environment :
3636 - REDIS_HOSTS=local:redis
3737 ports :
38- - " ${REDIS_COMMANDER_PORT}:8081"
38+ - " ${REDIS_COMMANDER_PORT}:8081" # UI with http://localhost:8081/
3939 networks :
4040 - backend-network
4141
@@ -59,23 +59,17 @@ services:
5959 networks :
6060 - backend-network
6161
62- backend :
62+ php :
6363 container_name : " ${DOCKER_PREFIX}-backend"
6464 build :
65- context : ./docker/backend
65+ context : ./docker/php
6666 dockerfile : Dockerfile
67- args :
68- - WORK_DIR=${DOCKER_WORK_DIR}
69- - XDEBUG_MODE=${XDEBUG_MODE}
70- - XDEBUG_CLIENT_HOST=${XDEBUG_CLIENT_HOST}
71- - XDEBUG_IDKEY=${XDEBUG_IDKEY}
72- - XDEBUG_CLIENT_PORT=${XDEBUG_CLIENT_PORT}
7367 restart : always
7468 env_file :
7569 - .env
7670 volumes :
7771 - " ./src:${DOCKER_WORK_DIR}"
78- - ./logs/supervisor/:/var/log/supervisor/
72+ - " ./docker/php/conf.d/php.ini:/usr/local/etc/php/php.ini:ro "
7973 networks :
8074 - backend-network
8175
@@ -91,7 +85,7 @@ services:
9185 networks :
9286 - backend-network
9387 ports :
94- - " 9001:9001" # Access GUI with http://localhost:9001/
88+ - " 9001:9001" # UI with http://localhost:9001/
9589
9690networks :
9791 backend-network :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11server {
22 listen 80 default_server;
33 listen [::]:80 default_server;
4- root /var/www/backend /public;
4+ root /var/www/html /public;
55
6- server_name api.loc ;
6+ server_name localhost ;
77
88 index index.php;
99
@@ -15,7 +15,7 @@ server {
1515 }
1616
1717 location ~ \.php$ {
18- fastcgi_pass backend :9000;
18+ fastcgi_pass php :9000;
1919 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2020 include fastcgi_params;
2121 }
Original file line number Diff line number Diff line change 11server {
22 listen 80 default_server;
33 listen [::]:80 default_server;
4- root /var/www/backend /public;
4+ root /var/www/html /public;
55
66 server_name ${NGINX_HOST};
77
@@ -15,7 +15,7 @@ server {
1515 }
1616
1717 location ~ \.php$ {
18- fastcgi_pass backend :9000;
18+ fastcgi_pass php :9000;
1919 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2020 include fastcgi_params;
2121 }
Original file line number Diff line number Diff line change 1+ FROM php:8.1-fpm
2+
3+ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
4+
5+ RUN install-php-extensions pdo_mysql
6+ RUN install-php-extensions mysqli
7+ RUN install-php-extensions redis
8+ RUN install-php-extensions zip
9+ RUN install-php-extensions intl
10+ RUN install-php-extensions gd
11+ RUN install-php-extensions xdebug
12+ RUN install-php-extensions @composer
Original file line number Diff line number Diff line change 1+ date.timezone = UTC
File renamed without changes.
Original file line number Diff line number Diff line change 11[program:messenger-consume]
2- command=php /var/www/backend /src/bin/supervisor
2+ command=php /var/www/html /src/bin/supervisord.php
33user=root
44numprocs=1
55startsecs=0
You can’t perform that action at this time.
0 commit comments