Skip to content

Commit 5c86a3e

Browse files
committed
Add node service
1 parent 653b30e commit 5c86a3e

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ services:
1818
context: ./services/composer
1919
volumes:
2020
- ./:/app
21+
node:
22+
build:
23+
context: ./services/node
24+
volumes_from:
25+
- workspace
2126
volumes:
2227
php-fpm:
2328
driver: "local"

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "docker-webapp",
3+
"version": "0.0.1",
4+
"main": "public/index.php",
5+
"repository": "[email protected]:jpcaparas/docker-webapp.git",
6+
"license": "MIT",
7+
"dependencies": {
8+
"whatwg-fetch": "^2.0.3"
9+
}
10+
}

services/node/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:7.10
2+
3+
# mark volume/s as externally mounted
4+
VOLUME ["/var/www"]
5+
6+
# starting point
7+
WORKDIR /var/www
8+
9+
# comes preinstalled with yarn
10+
CMD ["node"]

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
whatwg-fetch@^2.0.3:
6+
version "2.0.3"
7+
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"

0 commit comments

Comments
 (0)