-
-
Save aschmelyun/3f7efe3ff2182ba22b8cd783f48ac10b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose run --rm npm run gulpwatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts" : { | |
"gulpwatch": "gulp watch" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where i put this package.json? there is one package.json in app . is it that or create a new one?
existing package.json :