kopia lustrzana https://github.com/FacilMap/facilmap
Add Dockerfile
rodzic
d56650c549
commit
3ad7dfa5cb
|
@ -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
|
16
config.js
16
config.js
|
@ -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"
|
||||
}
|
||||
};
|
Ładowanie…
Reference in New Issue