Merge branch 'master' of github.com:stackernews/stacker.news

This commit is contained in:
keyan 2022-10-25 16:45:36 -05:00
commit 46edb3e10c
3 changed files with 30 additions and 2 deletions

View File

@ -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`

View File

@ -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
View File

@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1
FROM node:14.17.0
ENV NODE_ENV=development
WORKDIR /app
EXPOSE 8080