-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing docker for development & adding live reload
- Loading branch information
Showing
9 changed files
with
2,021 additions
and
2,511 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
# node & npm | ||
node_modules | ||
npm-debug.log | ||
|
||
# next | ||
.next | ||
.vscode | ||
npm-debug.log | ||
|
||
# docker | ||
Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
|
||
# git files | ||
.git | ||
.gitignore | ||
|
||
# Generic files | ||
README.md | ||
LICENSE | ||
.vscode |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
# node & npm | ||
node_modules | ||
npm-debug.log | ||
|
||
# strapi | ||
.cache | ||
.tmp | ||
build | ||
exports | ||
exports | ||
|
||
# docker | ||
Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
|
||
# git files | ||
.git | ||
.gitignore | ||
|
||
# Generic files | ||
README.md | ||
LICENSE | ||
.vscode |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
version: "3.8" | ||
|
||
services: | ||
strapi: | ||
build: ./api | ||
container_name: strapi | ||
image: strapi/base | ||
working_dir: /srv/app | ||
command: sh -c "npm install && npm run develop" | ||
ports: | ||
- "1337:1337" | ||
volumes: | ||
- ./api:/srv/app | ||
restart: "on-failure" | ||
|
||
next: | ||
container_name: next | ||
image: node:12-alpine | ||
working_dir: /app | ||
command: sh -c "npm install && npm run dev" | ||
#environment: | ||
#- NODE_ENV=production | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- .:/app | ||
# Live reload for modules | ||
- /app/node_modules | ||
# Live reload for next | ||
- /app/.next | ||
command: sh -c "npm install && npm run dev" | ||
depends_on: | ||
- strapi | ||
restart: "on-failure" | ||
|
||
strapi: | ||
build: ./api | ||
container_name: strapi | ||
image: strapi/base | ||
working_dir: /srv/app | ||
ports: | ||
- "1337:1337" | ||
volumes: | ||
- ./api:/srv/app | ||
#environment: | ||
#- NODE_ENV=production | ||
command: sh -c "npm run develop" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,11 @@ module.exports = { | |
], | ||
}); | ||
|
||
config.watchOptions = { | ||
poll: 1000, | ||
aggregateTimeout: 300, | ||
}; | ||
|
||
return config; | ||
}, | ||
}; |
Oops, something went wrong.