https://github.com/weknowinc/php-node-build
Docker images with php and nodejs for build purposes
https://github.com/weknowinc/php-node-build
Last synced: 5 months ago
JSON representation
Docker images with php and nodejs for build purposes
- Host: GitHub
- URL: https://github.com/weknowinc/php-node-build
- Owner: weknowinc
- Created: 2018-04-30T15:56:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T16:29:16.000Z (about 8 years ago)
- Last Synced: 2025-11-22T13:20:29.938Z (8 months ago)
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-node-build
Docker images with php and nodejs for build development purposes
This Alpine based image was create to run [Particle](https://github.com/phase2/particle) (Last version v10.0.0-beta.3) on a local docker environment with `docker-compose` this image has:
* php `7.2.2`
* composer `1.6.4`
* node `8.11.1`
* npm `5.6.0`
* yarn `1.5.1`
Using this image on `docker-compose` environment
```
theme:
image: weknow/build-php-node
# use the volume of your php service
volumes_from:
- php
ports:
- '8080:8080'
# set the working directory of the theme
working_dir: ${DRUPAL_ROOT}/themes/custom/my_theme
```
Using this image on `docker-compose` environment with a reverse proxy (example traefik)
```
theme:
image: weknow/build-php-node
volumes_from:
- php:delegated
labels:
- 'traefik.backend=theme'
- 'traefik.port=8080'
- 'traefik.frontend.rule=Host:pl.${PROJECT_URL}'
working_dir: ${DRUPAL_ROOT}/themes/custom/my_theme
```
If you are using a reverse proxy, you need to adding the next params on your `webpack.pl.dev`
```
devServer: {
disableHostCheck: true,
public: 'pl.mywebsite.develop' // add your host name
},
```