diff options
author | Vitaly Takmazov | 2024-10-11 01:23:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-10-11 01:23:20 +0300 |
commit | bbdab5e2d38da2dfd7fea2f7a3593819cad21faa (patch) | |
tree | 42e745654ac6f411c624eb4aace6737a37efc901 | |
parent | 88aa7e9d7efb521effe069c6bd99dd687798082c (diff) |
vnext: Docker compose deployment
-rw-r--r-- | docker-compose.yml | 16 | ||||
-rw-r--r-- | package.json | 2 |
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" |