Init express
This commit is contained in:
@@ -3,13 +3,15 @@ version: "3.7"
|
|||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: node:16.9.0-alpine
|
image: node:16.9.0-alpine
|
||||||
command: sh -c "npm install && node ."
|
command: sh -c "npm install && npx nodemon ."
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- "mysql"
|
- "mysql"
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/app
|
- ./:/app
|
||||||
|
ports:
|
||||||
|
- "3030:3030"
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "bullet-hell-server",
|
"name": "bullet-hell-server",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Scoreboard server",
|
"description": "Scoreboard server",
|
||||||
"main": "index.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user