Merge branch 'master' of github.com:stackernews/stacker.news
This commit is contained in:
commit
46edb3e10c
@ -16,7 +16,8 @@ export const CURRENCY_SYMBOLS = {
|
||||
EUR: '€',
|
||||
GBP: '£',
|
||||
USD: '$',
|
||||
NZD: '$'
|
||||
NZD: '$',
|
||||
ZAR: 'R '
|
||||
}
|
||||
|
||||
const endpoint = (fiat) => `https://api.coinbase.com/v2/prices/BTC-${fiat ?? 'USD'}/spot`
|
||||
|
@ -22,4 +22,22 @@ services:
|
||||
volumes:
|
||||
- ./:/app
|
||||
links:
|
||||
- db
|
||||
- db
|
||||
worker:
|
||||
container_name: worker
|
||||
build: ./worker
|
||||
depends_on:
|
||||
- db
|
||||
env_file:
|
||||
- ./.env.sample
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./:/app
|
||||
links:
|
||||
- db
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command:
|
||||
- |
|
||||
npm install --loglevel verbose
|
||||
node worker/index.js
|
9
worker/Dockerfile
Normal file
9
worker/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:14.17.0
|
||||
|
||||
ENV NODE_ENV=development
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 8080
|
Loading…
x
Reference in New Issue
Block a user