Skip to content

Commit

Permalink
Add docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Korilakkuma committed Nov 10, 2018
1 parent fde7d86 commit 8e8100d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -98,7 +98,8 @@ $ node xsound-server-session-websocket.js 8080 websocket.log
$ git clone git@github.com:Korilakkuma/XSound.git
$ cd xsound
$ npm install
$ npm run docker:build
$ npm run build
$ npm run docker-compose:build
$ npm start
```

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,10 @@
version: '3'
services:
webserver:
build: .
container_name: xsound
tty: true
ports:
- 3000:80
volumes:
- .:/usr/share/nginx/html
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -8,10 +8,9 @@
"build": "webpack --mode production",
"build:watch": "webpack --watch --mode development",
"test": "npm run lint && karma start",
"docker:build": "docker build -t app .",
"docker:rmi": "docker rmi app",
"start": "docker container run --name webserver -d -p 3000:80 -v $(pwd):/usr/share/nginx/html app",
"stop": "docker stop webserver && docker rm webserver",
"docker-compose:build": "docker-compose build",
"start": "docker-compose up -d",
"stop": "docker stop xsound",
"start:server:websocket": "node ./build/xsound-server-session-websocket.js",
"start:server:ws": "node ./build/xsound-server-session-ws.js"
},
Expand Down

0 comments on commit 8e8100d

Please sign in to comment.