Remove Docker config, use heroku local instead
This commit is contained in:
parent
961ea49ac4
commit
db615e29fe
12
Dockerfile
12
Dockerfile
|
@ -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
|
|
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
Please visit [the unpkg website](https://unpkg.com) to learn more about how to use it.
|
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
|
### Sponsors
|
||||||
|
|
||||||
The project is sponsored by [Cloudflare](https://cloudflare.com) and [Heroku](https://heroku.com).
|
The project is sponsored by [Cloudflare](https://cloudflare.com) and [Heroku](https://heroku.com).
|
||||||
|
|
|
@ -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
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "docker-compose up",
|
"start": "heroku local",
|
||||||
"build": "NODE_ENV=production webpack -p --json > stats.json",
|
"build": "NODE_ENV=production webpack -p --json > stats.json",
|
||||||
"lint": "eslint modules",
|
"lint": "eslint modules",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
|
|
Loading…
Reference in New Issue