July 2018
Intermediate to advanced
420 pages
8h 46m
English
Let's make some adjustments in our docker-compose.yml file and add the image of the frontend application.
Open ./Client/docker-compose.yml and add the following code:
appserver:
image: 'angular-laravel-book'
container_name: chapter-11-appserver
# Build the image if don't exist
build: './Client'
ports:
- 3000:81
Note the commented lines. As part of the build command, we are using the angular-laravel-book image created with the npm run build:docker command. So, if you forget to run the build script, every time you run the docker-compose up -d command, the image will be created (if it does not already exist).
Read now
Unlock full access