Skip to content

Instantly share code, notes, and snippets.

@aschmelyun
Last active February 19, 2020 07:51
Show Gist options
  • Save aschmelyun/3f7efe3ff2182ba22b8cd783f48ac10b to your computer and use it in GitHub Desktop.
Save aschmelyun/3f7efe3ff2182ba22b8cd783f48ac10b to your computer and use it in GitHub Desktop.
docker-compose run --rm npm run gulpwatch
version: "3"
services:
redis:
image: "redis:alpine"
container_name: redis
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.dev
container_name: app_nginx
ports:
- 80:80
volumes:
- ./:/var/www
depends_on:
- php-fpm
- redis
npm:
image: node:13.7
container_name: npm
volumes:
- ./:/var/www
working_dir: /var/www
entrypoint: ['npm']
php-fpm:
build:
context: ./
dockerfile: Dockerfile.dev
container_name: app_php
volumes:
- ./:/var/www
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=null
- MYSQL_ROOT_PASSWORD=xxx
- MYSQL_HOST=mysql
- MYSQL_DATABASE=xxx
- MYSQL_USER=xxx
- MYSQL_PASS=xxx
mysql:
image: mysql:5.7
container_name: app_mysql
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_HOST=localhost
- MYSQL_DATABASE=xxx
- MYSQL_USER=xxx
- MYSQL_PASS=xxx
ports:
- "3306:3306"
cloud:
image: minio/minio
container_name: app_cloud
volumes:
- ./cloud-data/:/data
environment:
MINIO_ACCESS_KEY: xxx
MINIO_SECRET_KEY: xxx
MINIO_DOMAIN: miniolocal
command: server /data
ports:
- "9000:9000"
volumes:
dbdata:
"scripts" : {
"gulpwatch": "gulp watch"
}
@mkosmen
Copy link

mkosmen commented Feb 19, 2020

where i put this package.json? there is one package.json in app . is it that or create a new one?

existing package.json :

{
    "name": "lara-app",
    "version": "1.0.0",
    "description": "",
    "main": "gulpfile.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1"
    },
    "repository": {},
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "@babel/core": "^7.6.2",
      "@babel/preset-env": "^7.6.2",
      "gulp": "^3.9.1",
      "gulp-autoprefixer": "^7.0.1",
      "gulp-babel": "^8.0.0",
      "gulp-clean": "^0.4.0",
      "gulp-cli": "^2.0.1",
      "gulp-livereload": "^4.0.2",
      "gulp-notify": "^3.2.0",
      "gulp-rename": "^1.4.0",
      "gulp-sass": "^4.0.1",
      "gulp-uglify": "^3.0.1",
      "jquery": "^3.3.1",
      "jquery-migrate": "^3.1.0",
      "jquery-validation": "^1.19.1",
      "path": "^0.12.7",
      "run-sequence": "^2.2.1",
      "sweetalert": "^2.1.0",
      "toastr": "^2.1.4"
    },
    "dependencies": {
      "bootstrap": "^3.3.7",
      "bootstrap-sass": "^3.3.7",
      "bootstrap-toggle": "^2.2.2",
      "chart.js": "^2.7.3",
      "ckeditor": "^4.12.1",
      "datatables": "^1.10.18",
      "domurl": "^2.1.9",
      "easy-autocomplete": "^1.3.5",
      "font-awesome": "^4.7.0",
      "gulp-exec": "^3.0.2",
      "gulp-sequence": "^1.0.0",
      "hotkeys-js": "^3.7.3",
      "jquery-confirm": "^3.3.2",
      "jquery-ui": "^1.12.1",
      "jquery-ui-dist": "^1.12.1",
      "js-cookie": "^2.2.1",
      "lang.js": "^1.1.12",
      "lightbox2": "^2.11.1",
      "mousetrap": "^1.6.2",
      "qrcode": "^1.4.2",
      "scrolldir": "^1.5.0",
      "select2": "^4.0.11",
      "smart-app-banner": "^2.0.0",
      "uniqid": "^5.0.3"
    },
    "browserslist": [
      "defaults"
    ]
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment