Skip to content

Commit e107f6d

Browse files
authored
Merge pull request aschmelyun#15 from aschmelyun/feature/php7-4
Feature/php7 4
2 parents 4b1b0a5 + 16e3700 commit e107f6d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-fpm-alpine
1+
FROM php:7.4-fpm-alpine
22

33
WORKDIR /var/www/html
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A pretty simplified docker-compose workflow that sets up a LEMP network of conta
66

77
To get started, make sure you have [Docker installed](https://docs.docker.com/docker-for-mac/install/) on your system, and then clone this repository.
88

9-
Add your entire Laravel project to the `src` folder, then open a terminal and from this cloned respository's root run `docker-compose up -d --build`. Open up your browser of choice to [http://localhost:8080](http://localhost:8080) and you should see your Laravel app running as intended.
9+
First add your entire Laravel project to the `src` folder, then open a terminal and from this cloned respository's root run `docker-compose up -d --build`. Open up your browser of choice to [http://localhost:8080](http://localhost:8080) and you should see your Laravel app running as intended. **Your Laravel app needs to be in the src directory first before bringing the containers up, otherwise the artisan container will not build, as it's missing the appropriate file.**
1010

1111
**New:** Three new containers have been added that handle Composer, NPM, and Artisan commands without having to have these platforms installed on your local computer. Use the following command templates from your project root, modifiying them to fit your particular use case:
1212

@@ -21,4 +21,4 @@ Containers created and their ports (if used) are as follows:
2121
- **php** - `:9000`
2222
- **npm**
2323
- **composer**
24-
- **artisan**
24+
- **artisan**

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
- laravel
2020

2121
mysql:
22-
image: mysql:5.7.22
22+
image: mysql:5.7.29
2323
container_name: mysql
2424
restart: unless-stopped
2525
tty: true
@@ -78,4 +78,4 @@ services:
7878
working_dir: /var/www/html
7979
entrypoint: ['/var/www/html/artisan']
8080
networks:
81-
- laravel
81+
- laravel

0 commit comments

Comments
 (0)