diff --git a/deploy/docker/steedos.config.js b/deploy/docker/steedos.config.js index ea24231c59..e8ae71ac31 100644 --- a/deploy/docker/steedos.config.js +++ b/deploy/docker/steedos.config.js @@ -9,5 +9,4 @@ module.exports = { started(broker) { broker.createService(require("@steedos/service-community")); }, - }; \ No newline at end of file diff --git a/deploy/single/.gitignore b/deploy/single/.gitignore index 59da4af20d..87e10b3c3b 100644 --- a/deploy/single/.gitignore +++ b/deploy/single/.gitignore @@ -1 +1,2 @@ -stacks \ No newline at end of file +stacks +.env \ No newline at end of file diff --git a/deploy/single/Dockerfile b/deploy/single/Dockerfile index 4013d3d530..02276a6013 100644 --- a/deploy/single/Dockerfile +++ b/deploy/single/Dockerfile @@ -1,5 +1,11 @@ -FROM steedos/steedos-community +FROM node:14-slim +RUN apt-get update || : && apt-get install -y \ + python \ + curl \ + build-essential + +WORKDIR /app # Install MongoDB 4.4 # https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-debian/ @@ -26,6 +32,14 @@ RUN apt-get update \ && apt-get remove -y git python-pip \ && apt-get clean -y + +COPY package.json . +COPY steedos.config.js . + +ENV NODE_ENV=production + +RUN npm i --production && npm cache clean --force + # Remove cached files RUN rm -rf \ /root/.cache \ diff --git a/deploy/single/docker-compose.yml b/deploy/single/docker-compose.yml index 1fc30fedc4..1be1604232 100644 --- a/deploy/single/docker-compose.yml +++ b/deploy/single/docker-compose.yml @@ -13,6 +13,7 @@ services: - "9001:9001" environment: - ROOT_URL=http://127.0.0.1:3000 + - STEEDOS_LICENSE=8353b1c47341d8097c3a51a59bd683bf0392690922d4488a3461c0b57fb19a2c33a96b92f7f18a077d2f55211ceb17b4e551829d3772256f3cf940e9bd1f1428c178eac265c231a59a012fe6931e6e3bfe9fe783e9a0bcd833bbc89e30acf55358697657cee237b19626e1f7490d1003be9fbfdb3b0669be3598e105eff5a4737f52d634d158a1ebbb2dd15bacbefed8c4895864d8a5a65cba49387b7eda4a9d823ad7e5e031dd421b29775c86e0ca9f8f2a10dcc6009f97664f44e5e787571a8589102e9a3acd6c9275db5360044a5077457fd0e46a7fa685984ee092ca564558b50f9d023321abecf4a4a9e37b0117ba8fe921d9868545a15e0f1eb8ee03647921446b4e73c443afed31af808c9ee55e9c071b448a0518455e3cdf405ff4dbd848df8f589b35163b4a708b3e931e3db7e07da16d2b677fd11defe581c9bf5bd9961b11b01e629385dafde979577dd7a15de2ac89ca46a6d9ff5156c4c9bb813958474a6dc0079999121bc9aff517d0bf3d5b369583f990b12e1f9e8c153bec4f8ff2da8ed2128e4c62456812a56dd7fb30d550813e79c5a7d0a113ba822895d32a72989edc72bd8dca64eb2f2c13c66af5c1fd7b6080c1246e3a5a72919d74495784290f2d2dcaaaa95dd1f973011f4d5d558dcf13b74a51a2b7fbc5ed0227ecf84668d3b31feb49a598788545b917e08926ecb30f7c1b491cc955fe89d6eba21d30397e51a7b2e17ed31f4cb0df3dc9ca0e4f4253d5e9a554c029916f2afb3f1cbabdf64183fb45da7b6d173e4d814f5fa4716b18c3681287b0463d25e95a3c5ba53efe69ba28ed777a80d58bcd1ae4a51b37089d7d420b9cfaab2eaf9bf90a89adb7aaa1791862cf460fc33403e754789fe01abf19a756fe1842491cfe837292e5a4327f9786ea0698ecfe974f2367b03b96fea007ce1661bca2e47e1841f9fa32a05a7682aeddd91594689abddb13d46beaab11fedd733fd5a17429ed343ddec550c885c6cd7e74ae853cc608d09f1ac4640ccb6163fc18c8e91b24bbdb66c87e7fe70d260a18b8b0338b9cfa4ccad0f98e304377a1a5d9e7c1332112b2,2022-0001 volumes: - "./stacks:/steedos-stacks" \ No newline at end of file diff --git a/deploy/single/package.json b/deploy/single/package.json new file mode 100644 index 0000000000..de296b0a24 --- /dev/null +++ b/deploy/single/package.json @@ -0,0 +1,11 @@ +{ + "name": "steedos-community", + "private": true, + "scripts": { + "start": "steedos start" + }, + "dependencies": { + "@steedos/service-community": "~2.5", + "@steedos/service-enterprise": "~2.5" + } + } \ No newline at end of file diff --git a/deploy/single/steedos.config.js b/deploy/single/steedos.config.js new file mode 100644 index 0000000000..4b276d9301 --- /dev/null +++ b/deploy/single/steedos.config.js @@ -0,0 +1,14 @@ +module.exports = { + // Namespace of nodes to segment your nodes on the same network. + namespace: "steedos", + // Default log level for built-in console logger. It can be overwritten in logger options above. + // Available values: trace, debug, info, warn, error, fatal + logLevel: "warn", + + // Called after broker started. + started(broker) { + broker.createService(require("@steedos/service-community")); + broker.createService(require("@steedos/service-enterprise")); + }, + +}; \ No newline at end of file