我有兩個碼頭工人組成,我開始docker-compose f- docker-compose.yml -f docker-compose-osx.yml up
在Docker-Composose中集成Grunt?
文件內容的文件是:
泊塢窗,compose.yml:
version: '2'
services:
fpm:
image: sbusso/php-fpm-ion
nginx:
image: nginx:stable
ports:
- "80:80"
links:
- fpm
- db
db:
image: orchardup/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: myproject
和
泊塢窗,撰寫-OSX。 yml
version: '2'
services:
fpm:
links:
- sync
volumes_from:
- sync
db:
links:
- sync
volumes_from:
- sync
nginx:
links:
- sync
volumes_from:
- sync
sync:
image: zeroboh/lsyncd
volumes:
- /var/www/html
- ./src:/src:Z
- ./docker-config/nginx:/etc/nginx/conf.d
- /var/lib/php/session
- ./docker-config/lrsync/lrsync.lua:/etc/lrsync/lrsync.lua
- ./sync:/sync
通常當我連接到我的fpm容器時,我需要運行grunt,但是grunt和npm並不知道我的docker容器。
如何在我的docker-compose文件中集成grunt?
謝謝!