File tree 11 files changed +25
-67
lines changed
11 files changed +25
-67
lines changed Original file line number Diff line number Diff line change 1
1
# Docker
2
2
DOCKER_PREFIX=skeleton
3
- DOCKER_WORK_DIR=/var/www/backend
3
+ DOCKER_WORK_DIR=/var/www/html
4
4
5
5
# Nginx
6
6
NGINX_VERSION=latest
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ services:
35
35
environment :
36
36
- REDIS_HOSTS=local:redis
37
37
ports :
38
- - " ${REDIS_COMMANDER_PORT}:8081"
38
+ - " ${REDIS_COMMANDER_PORT}:8081" # UI with http://localhost:8081/
39
39
networks :
40
40
- backend-network
41
41
@@ -59,23 +59,17 @@ services:
59
59
networks :
60
60
- backend-network
61
61
62
- backend :
62
+ php :
63
63
container_name : " ${DOCKER_PREFIX}-backend"
64
64
build :
65
- context : ./docker/backend
65
+ context : ./docker/php
66
66
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}
73
67
restart : always
74
68
env_file :
75
69
- .env
76
70
volumes :
77
71
- " ./src:${DOCKER_WORK_DIR}"
78
- - ./logs/supervisor/:/var/log/supervisor/
72
+ - " ./docker/php/conf.d/php.ini:/usr/local/etc/php/php.ini:ro "
79
73
networks :
80
74
- backend-network
81
75
@@ -91,7 +85,7 @@ services:
91
85
networks :
92
86
- backend-network
93
87
ports :
94
- - " 9001:9001" # Access GUI with http://localhost:9001/
88
+ - " 9001:9001" # UI with http://localhost:9001/
95
89
96
90
networks :
97
91
backend-network :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
server {
2
2
listen 80 default_server;
3
3
listen [::]:80 default_server;
4
- root /var/www/backend /public;
4
+ root /var/www/html /public;
5
5
6
- server_name api.loc ;
6
+ server_name localhost ;
7
7
8
8
index index.php;
9
9
@@ -15,7 +15,7 @@ server {
15
15
}
16
16
17
17
location ~ \.php$ {
18
- fastcgi_pass backend :9000;
18
+ fastcgi_pass php :9000;
19
19
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
20
20
include fastcgi_params;
21
21
}
Original file line number Diff line number Diff line change 1
1
server {
2
2
listen 80 default_server;
3
3
listen [::]:80 default_server;
4
- root /var/www/backend /public;
4
+ root /var/www/html /public;
5
5
6
6
server_name ${NGINX_HOST};
7
7
@@ -15,7 +15,7 @@ server {
15
15
}
16
16
17
17
location ~ \.php$ {
18
- fastcgi_pass backend :9000;
18
+ fastcgi_pass php :9000;
19
19
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
20
20
include fastcgi_params;
21
21
}
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 1
1
[program:messenger-consume]
2
- command=php /var/www/backend /src/bin/supervisor
2
+ command=php /var/www/html /src/bin/supervisord.php
3
3
user=root
4
4
numprocs=1
5
5
startsecs=0
File renamed without changes.
You can’t perform that action at this time.
0 commit comments