I need to build an stack with PHP-FPM and NodeJS. I don't want to mix both in the same container so I choose Docker Compose. This is how my docker-compose.yml looks like:
version: '3'
services:
webserver:
build: https://github.com/reypm/php-fpm
args:
INSTALL_COMPOSER: true
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- ./laravel_node:/var/www/html
nodejs:
image: node:latest
In Docker Compose v3 volumes_from disappear and the docs here for volumes isn't so clear to me.
How do I mount the VOLUME /var/www/html on the NodeJS container so I run a command in NodeJS container and the result is present on PHP-FPM container?
I haven seen some examples 1, 2 but this isn't used or at least I couldn't find how to achieve this.
via ReynierPM
No comments:
Post a Comment