Skip to content

Commit

Permalink
feat: Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
claycat committed Dec 1, 2022
1 parent 76bade1 commit f5ff616
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
Dockerfile
.git
.gitignore
.dockerignore
15 changes: 15 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:latest

WORKDIR /usr/src/app

COPY . ./

WORKDIR /usr/src/app/client
RUN npm install
RUN npm run build

WORKDIR /usr/src/app/server
RUN npm install
RUN npm run build

EXPOSE 4000
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: "3.8"

services:
prod:
build:
context: .
dockerfile: Dockerfile.prod
container_name: prod
ports:
- "4000:4000"
command: npm run start
networks:
- webnet
depends_on:
- redis

redis:
container_name: redis
image: redis:5
command: redis-server
networks:
- webnet
ports:
- "6379:6379"

networks:
webnet:

0 comments on commit f5ff616

Please sign in to comment.