Commit 7ce63952 authored by Yannis Barlas's avatar Yannis Barlas

chore(*): forgotten files

parent 146d5523
FROM node:8.16.0-alpine
WORKDIR /usr/src/app
RUN apk add yarn git python build-base
COPY package.json ./
COPY yarn.lock ./
RUN yarn
COPY . .
EXPOSE 3000
CMD ["yarn", "server"]
......@@ -3,6 +3,8 @@ const path = require('path')
const winston = require('winston')
const mailgun = require('nodemailer-mailgun-transport')
const dbManager = require('@pubsweet/db-manager')
const components = require('./components.json')
const mailTransport = mailgun({
......@@ -36,6 +38,7 @@ module.exports = {
},
},
},
dbManager,
detectionMethodCorrelations: {
antibody: ['antibodyUsed'],
existingTransgene: ['transgeneUsed'],
......
......@@ -30,8 +30,9 @@ module.exports = {
'pubsweet-server': {
db: {
database: 'wb',
host: 'db',
password: 'pass',
port: 5480,
port: 5432,
user: 'dev',
},
host: 'http://localhost',
......
version: "3"
version: '3'
services:
app:
build:
context: .
ports:
- ${PORT:-3000}:3000
depends_on:
- db
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
db:
image: postgres:10-alpine
ports:
- ${DB_PORT:-5480}:5432
- ${DB_PORT:-5432}:5432
environment:
- POSTGRES_DB=${DB_NAME:-wb}
- POSTGRES_USER=${DB_USER:-dev}
- POSTGRES_PASSWORD=${DB_PASSWORD:-pass}
volumes:
node_modules:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment