File tree Expand file tree Collapse file tree 4 files changed +60
-17
lines changed Expand file tree Collapse file tree 4 files changed +60
-17
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export interface IOverlayServer {
13
13
@injectable ( )
14
14
export default class OverlayServer {
15
15
private server : Server ;
16
- private host = 'localhost ' ;
16
+ private host = '0.0.0.0 ' ;
17
17
private port = 8070 ;
18
18
private rootPath = `local-cache/audio/8ball` ;
19
19
Original file line number Diff line number Diff line change 1
1
version : ' 3.8'
2
2
services :
3
- # app:
4
- # build:
5
- # context: . # Context should only operate on a File System context based on the root directory
6
- # target: dev
7
- # # image: node:18-alpine
8
- # # working_dir: /app
9
- # depends_on:
10
- # postgres:
11
- # condition: service_healthy
12
- # volumes:
13
- # - ./:/app
14
- # - D:/DataWorkspaces/stream-assist-bot/logs:/app/logs
15
- # - D:/DataWorkspaces/stream-assist-bot/cache/:/app/local-cache/
3
+ app :
4
+ build :
5
+ context : . # Context should only operate on a File System context based on the root directory
6
+ target : dev
7
+ working_dir : /app
8
+ depends_on :
9
+ postgres :
10
+ condition : service_healthy
11
+ ports :
12
+ - 8080:8080 # WebSocker Server Port
13
+ - 8070:8070 # Overlay Server Port
14
+ environment :
15
+ POSTGRES_HOST : postgres
16
+ POSTGRES_PORT : 5432
17
+ volumes :
18
+ - ./:/app
19
+ - D:/DataWorkspaces/stream-assist-bot/logs:/app/logs
20
+ - D:/DataWorkspaces/stream-assist-bot/cache/:/app/local-cache/
16
21
postgres :
17
22
image : postgres
18
23
restart : always
@@ -24,7 +29,7 @@ services:
24
29
POSTGRES_DB : stream-assist-bot
25
30
POSTGRES_PASSWORD : Vsnyi&FN^oLXUVqdjm9v4
26
31
ports :
27
- - ' 6432:5432' # Expose the default postgres port
32
+ - 6432:5432 # Expose the default postgres port
28
33
healthcheck :
29
34
test : [ "CMD", "pg_isready" ]
30
35
interval : 10s
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1
2
+
3
+ ARG NODE_VERSION=18.0.0
4
+
5
+ FROM node:${NODE_VERSION}-alpine as base
6
+ WORKDIR /usr/src/app
7
+
8
+ FROM base as dev
9
+ # install postgress client to debug db connection
10
+ # RUN apk --update add postgresql-client
11
+ RUN --mount=type=bind,source=package.json,target=package.json \
12
+ --mount=type=bind,source=package-lock.json,target=package-lock.json \
13
+ --mount=type=cache,target=/root/.npm \
14
+ npm ci --include=dev
15
+ USER node
16
+ COPY . .
17
+ CMD npm run dev
18
+
19
+ # FROM base as prod
20
+ # ENV NODE_ENV production
21
+ # RUN --mount=type=bind,source=package.json,target=package.json \
22
+ # --mount=type=bind,source=package-lock.json,target=package-lock.json \
23
+ # --mount=type=cache,target=/root/.npm \
24
+ # npm ci --omit=dev
25
+ # USER node
26
+ # COPY . .
27
+ # CMD node src/index.js
28
+
29
+ # FROM base as test
30
+ # ENV NODE_ENV test
31
+ # RUN --mount=type=bind,source=package.json,target=package.json \
32
+ # --mount=type=bind,source=package-lock.json,target=package-lock.json \
33
+ # --mount=type=cache,target=/root/.npm \
34
+ # npm ci --include=dev
35
+ # USER node
36
+ # COPY . .
37
+ # RUN npm run test
Original file line number Diff line number Diff line change 44
44
"sequelize-cli" : " ^6.6.2"
45
45
},
46
46
"scripts" : {
47
- "start" : " docker compose up -d && ts-node app.ts" ,
47
+ "start" : " ts-node app.ts" ,
48
+ "dev" : " ts-node app.ts" ,
48
49
"test" : " mocha -r ts-node/register **/*.spec.ts"
49
50
},
50
51
"keywords" : [
54
55
],
55
56
"author" : " Bryan Wood" ,
56
57
"license" : " GPLv3"
57
- }
58
+ }
You can’t perform that action at this time.
0 commit comments