mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Fix issues with local Docker development.
This commit is contained in:
parent
0fd0a29a4d
commit
e47845535a
3 changed files with 12 additions and 7 deletions
|
|
@ -3,9 +3,12 @@ FROM node:12
|
|||
# Install global packages
|
||||
RUN npm install -g gulp-cli mocha
|
||||
|
||||
# Copy Habitica code into container and install dependencies
|
||||
# Copy package.json and package-lock.json into image, then install
|
||||
# dependencies.
|
||||
WORKDIR /usr/src/habitica
|
||||
COPY . /usr/src/habitica
|
||||
|
||||
COPY ["package.json", "package-lock.json", "./"]
|
||||
RUN npm install
|
||||
|
||||
# Copy the remaining source files in.
|
||||
COPY . /usr/src/habitica
|
||||
RUN npm run postinstall
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@ services:
|
|||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- .:/code
|
||||
- /code/node_modules
|
||||
- .:/usr/src/habitica
|
||||
- /usr/src/habitica/node_modules
|
||||
- /usr/src/habitica/website/client/node_modules
|
||||
server:
|
||||
build:
|
||||
context: .
|
||||
|
|
@ -32,8 +33,8 @@ services:
|
|||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- .:/code
|
||||
- /code/node_modules
|
||||
- .:/usr/src/habitica
|
||||
- /usr/src/habitica/node_modules
|
||||
mongo:
|
||||
image: mongo:3.6
|
||||
networks:
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
devServer: {
|
||||
disableHostCheck: true,
|
||||
proxy: {
|
||||
// proxy all requests to the server at IP:PORT as specified in the top-level config
|
||||
'^/api/v3': {
|
||||
|
|
|
|||
Loading…
Reference in a new issue