This repository was archived by the owner on Jan 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1+ # https://hub.docker.com/_/node/
2+ FROM node:14
3+
4+ WORKDIR /app
5+
6+ # CMD ["npm", "run", "serve"]
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ services:
2323 - /var/www/html/wp-content/plugins/wp-plugin-creativecommons/dev/wordpress
2424 - /var/www/html/wp-content/plugins/wp-plugin-creativecommons/dev/db
2525 wpcli :
26- # continue running until shutdown (this allows docker compose exec which is
27- # much faster than docker compose run)
28- # Credits: https://serverfault.com/a/1084975
26+ # continue running until shutdown (allows docker compose exec which is much
27+ # faster than docker compose run) per https://serverfault.com/a/1084975
2928 command : sh -c 'trap "exit" TERM; while true; do sleep 1; done'
3029 container_name : ' local-wpcli'
3130 depends_on :
@@ -57,3 +56,11 @@ services:
5756 MYSQL_ROOT_PASSWORD : root
5857 volumes :
5958 - ./db:/var/lib/mysql
59+ node :
60+ build : .
61+ # continue running until shutdown (allows docker compose exec which is much
62+ # faster than docker compose run) per https://serverfault.com/a/1084975
63+ command : sh -c 'trap "exit" TERM; while true; do sleep 1; done'
64+ container_name : ' local-node'
65+ volumes :
66+ - ..:/app
You can’t perform that action at this time.
0 commit comments