pull/54/merge
Candid Dauth 2016-10-18 16:24:02 +03:00
rodzic d56650c549
commit 3ad7dfa5cb
2 zmienionych plików z 27 dodań i 8 usunięć

19
Dockerfile 100644
Wyświetl plik

@ -0,0 +1,19 @@
FROM node:latest
MAINTAINER Candid Dauth <cdauth@cdauth.eu>
CMD npm run server
EXPOSE 8080
RUN useradd -m -d /opt/facilpad -s /bin/bash facilpad
WORKDIR /opt/facilpad
COPY ./ ./
RUN chown -R facilpad:facilpad .
USER facilpad
RUN npm run deps && npm run clean && npm run build
USER root
RUN chown -R root:root .
USER facilpad

Wyświetl plik

@ -1,13 +1,13 @@
module.exports = {
userAgent : 'FacilPad (https://pad.facilmap.org/, cdauth@cdauth.eu)',
userAgent : process.env.USER_AGENT || 'FacilPad (https://pad.facilmap.org/, cdauth@cdauth.eu)',
host : null,
port : 40829,
port : 8080,
db : {
type: "mysql", // mysql, postgres, mariadb, sqlite
host: "localhost",
port: null,
database: "facilpad",
user: "facilpad",
password: "password"
type: process.env.DB_TYPE || "mysql", // mysql, postgres, mariadb, sqlite
host: process.env.DB_HOST || "localhost",
port: process.env.DB_PORT || null,
database: process.env.DB_NAME || "facilpad",
user: process.env.DB_USER || "facilpad",
password: process.env.DB_PASSWORD || "password"
}
};