Answer the question
In order to leave comments, you need to log in
How to work with laravel in docker?
developed a small docker compose for myself to work with laravel in a docker environment
, here is its contents
version: '3'
networks:
laravel:
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
depends_on:
- php
- mysql
ports:
- "80:80"
volumes:
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- laravel
mysql:
image: mysql:5.7
container_name: mysql
tty: true
ports:
- "4306:3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=laravel
- MYSQL_ROOT_PASSWORD=root
networks:
- laravel
php:
build: ./php
container_name: php
volumes:
- ./src:/var/www/html
ports:
- "9000:9000"
networks:
- laravel
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question