Skip to content

Commit

Permalink
Add php logs and fix supervisor example conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Mykhalichenko committed Jul 2, 2022
1 parent c7df98a commit 11d9a19
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ services:
- .env
volumes:
- "./src:${DOCKER_WORK_DIR}"
- "./docker/php/conf.d/php.ini:/usr/local/etc/php/php.ini:ro"
- ./logs/php/:/var/log/php
- ./docker/php/conf.d/php.ini:/usr/local/etc/php/php.ini:ro
networks:
- backend-network

Expand Down
4 changes: 2 additions & 2 deletions docker/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ server {

index index.php;

error_log /var/log/nginx/backend-error.log;
access_log /var/log/nginx/backend-access.log;
error_log /var/log/nginx/www-error.log;
access_log /var/log/nginx/www-access.log;

location / {
try_files $uri $uri/ /index.php?$query_string;
Expand Down
4 changes: 2 additions & 2 deletions docker/nginx/default.template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ server {

index index.php;

error_log /var/log/nginx/backend-error.log;
access_log /var/log/nginx/backend-access.log;
error_log /var/log/nginx/www-error.log;
access_log /var/log/nginx/www-access.log;

location / {
try_files $uri $uri/ /index.php?$query_string;
Expand Down
5 changes: 4 additions & 1 deletion docker/php/conf.d/php.ini
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
date.timezone = UTC
date.timezone = UTC

log_errors = On
error_log = /var/log/php/error.log
2 changes: 1 addition & 1 deletion docker/supervisord/conf.d/example.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[program:messenger-consume]
[program:example-consume]
command=php /var/www/html/src/bin/supervisord.php
user=root
numprocs=1
Expand Down

0 comments on commit 11d9a19

Please sign in to comment.