Remove Docker config, use heroku local instead

This commit is contained in:
Michael Jackson 2018-12-20 19:50:30 -08:00
parent 961ea49ac4
commit db615e29fe
4 changed files with 1 additions and 60 deletions

View File

@ -1,12 +0,0 @@
FROM node:8
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
# COPY . .
ENV PORT 5000
CMD ["node", "server.js"]
EXPOSE 5000

View File

@ -9,10 +9,6 @@
Please visit [the unpkg website](https://unpkg.com) to learn more about how to use it.
### Development
To boot the development server, first you'll need to [install Docker](https://docs.docker.com/install/). Then, you can get everything running with `docker-compose up`.
### Sponsors
The project is sponsored by [Cloudflare](https://cloudflare.com) and [Heroku](https://heroku.com).

View File

@ -1,43 +0,0 @@
version: "3"
networks:
localnet: {}
services:
data:
image: redis
networks:
- localnet
server:
build: .
command: node_modules/.bin/nodemon --ignore modules/client server.js
env_file: .env
environment:
- CACHE_URL=redis://data:6379
- DATA_URL=redis://data:6379
- PORT=8080
volumes:
- .:/app
- /app/node_modules
depends_on:
- data
networks:
- localnet
ports:
- "8080:8080"
worker:
build: .
command: node_modules/.bin/nodemon --ignore modules/client modules/ingestLogsEveryMinute.js
env_file: .env
environment:
- DATA_URL=redis://data:6379
volumes:
- .:/app
- /app/node_modules
depends_on:
- data
networks:
- localnet

View File

@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"start": "docker-compose up",
"start": "heroku local",
"build": "NODE_ENV=production webpack -p --json > stats.json",
"lint": "eslint modules",
"test": "jest"