Skip to content

Commit 4cf816e

Browse files
Merge pull request #2 from mangledbottles/docker
Docker Implementation
2 parents 0c6ab89 + 4395229 commit 4cf816e

File tree

6 files changed

+2394
-127
lines changed

6 files changed

+2394
-127
lines changed

Client/src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const formModelRef = ref({
4949
export default {
5050
name: "App",
5151
components: {
52-
HelloWorldVue,
5352
},
5453
data: () => {
5554
return {

Server/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Server/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:16.9.1
2+
3+
WORKDIR /
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
# Switcher Port
12+
EXPOSE 51510/udp
13+
14+
CMD [ "npm", "run", "switcher"]

Server/docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '3'
2+
services:
3+
switcher:
4+
build: .
5+
command: [ "npm", "run", "switcher" ]
6+
ports:
7+
- "51510:51510/udp"
8+
# router1:
9+
# build: .
10+
# command: [ "npm", "run", "router" ]
11+
# router2:
12+
# build: .
13+
# command: [ "npm", "run", "router" ]
14+
# router3:
15+
# build: .
16+
# command: [ "npm", "run", "router" ]
17+
# ports:
18+
# - "55000-60000:55000-60000/udp"

0 commit comments

Comments
 (0)