Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Set DOCKER_ENV in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
PinLin committed Jan 6, 2019
1 parent 7d1806a commit 86b3add
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ WORKDIR /app
RUN yarn install
RUN yarn build

CMD [ "yarn", "docker" ]
CMD [ "yarn", "start" ]

EXPOSE 3000
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
- "3000"
depends_on:
- mariadb
environment:
DOCKER_ENV: "1"
mariadb:
container_name: mariadb
image: mariadb
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"back": "cross-env NODE_ENV=development nodemon server/back.js --watch server --exec babel-node",
"build": "nuxt build",
"start": "cross-env NODE_ENV=production babel-node server/index.js",
"docker": "cross-env NODE_ENV=production DOCKER_ENV=1 babel-node server/index.js",
"generate": "nuxt generate",
"lint": "eslint --ext .js,.vue .",
"lintfix": "eslint --fix --ext .js,.vue .",
Expand Down

0 comments on commit 86b3add

Please sign in to comment.