I am doing a docker Setup with two nginx configs
One of them is running locally (Ubuntu), without any problem
But on remote (Ubuntu) it is not working.
My Compose File
nginx_be:
container_name: bx-nginx-be
image: nginx:1.15.3-alpine
restart: on-failure
volumes:
- "./docker/nginx_be/default.conf:/etc/nginx/conf.d/default.conf:ro"
- "./_backend:/app"
ports:
- "${PORT_NGINX_BE}:80"
depends_on:
- php
environment:
- FRONTEND_URL=${FRONTEND_URL}
php:
container_name: bx-php
user: "${WORKSPACE_PUID}:${WORKSPACE_PGID}"
volumes:
- "./_backend:/app"
- "./temporary/composer/cache:/.composer/cache"
build:
context: .
dockerfile: docker/php/Dockerfile
args:
- PUID=${WORKSPACE_PUID}
- PGID=${WORKSPACE_PGID}
- TZ=${WORKSPACE_TIMEZONE}
restart: on-failure
env_file:
- .env
environment:
COMPOSER_MEMORY_LIMIT: -1
As mentioned before, this works fine.
On my remote server, the same returns me a 500
And I cannot set the error reporting to see what is wrong
I debugged it with var_dumps, but fond no error. Debugged endles, didn’ t meet the end.
This is my .env file for docker
PORT_NGINX_FE=8081
PORT_NGINX_BE=8082
PORT_MYSQL=8083
PORT_ADMINER=8084
PORT_MAILHOG_1=8085
PORT_MAILHOG_2=8086
FRONTEND_URL=localhost
WORKSPACE_PUID=1000
WORKSPACE_PGID=1000
WORKSPACE_TIMEZONE=UTC
And this is my laravel .env.
APP_NAME=Bx
APP_ENV=local
APP_KEY=base64:+oJfQmeu6q/FfPiWc8Iu0cj9aP39/UUQe9M5s2HwoIc=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=bx
DB_USERNAME=user1234
DB_PASSWORD=pass1234
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
Cache is cleared, container has been rebuild, removed images before…
Cannot even see which ini is valid and nothing to see in docker logs ***
Any hint ??