Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
build: ajuste la configuration docker
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisromain committed Dec 17, 2019
1 parent 5884724 commit b8ab935
Show file tree
Hide file tree
Showing 6 changed files with 3,127 additions and 1,246 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM node:alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY .env ./
RUN npm install --production
COPY index.js ./
COPY worker worker/
COPY public public/
CMD ["npm", "start"]
CMD npm run start
3 changes: 2 additions & 1 deletion docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ services:
VIRTUAL_HOST: ${URL}
VIRTUAL_PORT: ${NODE_PORT}
NODE_PORT: ${NODE_PORT}
HTTPS_METHOD: noredirect
expose:
- ${NODE_PORT}
env_file: .env
restart: always

networks:
default:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
NODE_PORT: ${NODE_PORT}
expose:
- ${NODE_PORT}
env_file: .env
restart: always

networks:
default:
Expand Down
2 changes: 1 addition & 1 deletion docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ Pré-requis:
```bash
# démarre l'application dans un container Docker
# en mode `production`
# accessible à http://flux.camino.pw
# accessible à https://{URL}
docker-compose -f ./docker-compose.yml up -d --build
```
Loading

0 comments on commit b8ab935

Please sign in to comment.