generated from cartesiancs/devent-frame
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8e5f23
commit d92837d
Showing
12 changed files
with
269 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE DATABASE IF NOT EXISTS e2echat; | ||
FLUSH PRIVILEGES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pakage-lock.json | ||
/node_modules | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:18 | ||
WORKDIR /app | ||
COPY package*.json /app | ||
RUN npm install --global node-gyp | ||
RUN npm install | ||
RUN npm install -g typescript | ||
RUN npm install pm2 -g | ||
COPY . /app | ||
RUN npm i -d @types/node | ||
RUN tsc | ||
RUN npm run bundle | ||
CMD [ "pm2-runtime", "start", "npm", "--", "start" ] | ||
EXPOSE 9023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: '3.1' | ||
|
||
services: | ||
|
||
main: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
environment: | ||
DB_CLIENT: mysql | ||
DB_HOST: 172.17.0.1 | ||
DB_USER: root | ||
DB_PASS: pi1GfukVsan5UJGugWxF | ||
DB_DATABASE: e2echat | ||
DB_PORT: 13309 | ||
NODE_ENV: production | ||
VIRTUAL_HOST: chat.devent.kr | ||
LETSENCRYPT_HOST: chat.devent.kr | ||
LETSENCRYPT_EMAIL: hhj@devent.kr | ||
network_mode: "bridge" | ||
|
||
|
||
db: | ||
image: mysql:8.0 | ||
ports: | ||
- 13309:3306 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: pi1GfukVsan5UJGugWxF | ||
volumes: | ||
- .docker/setup.sql:/docker-entrypoint-initdb.d/setup.sql | ||
network_mode: "bridge" | ||
|
||
redis: | ||
image: redis:latest | ||
command: redis-server --port 6379 | ||
container_name: redis | ||
hostname: redis | ||
labels: | ||
- "name=redis" | ||
- "mode=standalone" | ||
ports: | ||
- 6379:6379 |
Oops, something went wrong.