aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml16
-rw-r--r--package.json2
2 files changed, 17 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..ce9d409f
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,16 @@
+version: '3.8'
+services:
+ vnext:
+ network_mode: bridge
+ build:
+ context: .
+ dockerfile: vnext/server/Dockerfile
+ restart: unless-stopped
+ ports:
+ - "127.0.0.1:8081:8081"
+ environment:
+ JUICK_FCM_SERVICE_ACCOUNT_FILE: ${JUICK_FCM_SERVICE_ACCOUNT_FILE}
+ DEBUG: sender,durov,http,event,hms,android
+ NODE_CONFIG_DIR: /etc/juick
+ volumes:
+ - /etc/juick:/etc/juick
diff --git a/package.json b/package.json
index 515b5cdf..fcbc3acf 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"compile": "webpack --mode production",
"lint": "eslint src/main/assets",
"vnext:build": "webpack -c vnext/webpack.config.js --mode production --progress",
- "vnext:build:ssr": "npm run vnext:build && webpack -c vnext/server/webpack.config.js --mode production && docker build -f vnext/server/Dockerfile . -t \"ghcr.io/juick/vnext\"",
+ "vnext:build:ssr": "npm run vnext:build && webpack -c vnext/server/webpack.config.js --mode production",
"vnext:start-ssr": "npm run vnext:build && webpack -c vnext/server/webpack.config.js --mode development && cross-env DEBUG=http node --enable-source-maps public/server.js",
"vnext:start": "webpack serve -c vnext/webpack.config.js --mode development",
"vnext:lint": "eslint vnext"