Skip to content

Commit

Permalink
✅ DockerFile
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Aug 13, 2023
1 parent e5c341b commit 0a16892
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1,383 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN npm install

COPY ./tsconfig.json .
COPY ./src ./src
COPY ./public ./public

RUN npm run build

Expand All @@ -35,6 +36,7 @@ COPY --from=builder /codechat/dist .

COPY ./tsconfig.json .
COPY ./src ./src
COPY ./public ./public
RUN mkdir instances

ENV DOCKER_ENV=true
Expand Down
42 changes: 21 additions & 21 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ volumes:
services:
api:
container_name: codechat_api
image: codechat/api:local
image: codechat/api:v1.2.6
restart: unless-stopped
ports:
- 8083:8083
volumes:
- ./instances:/codechat/instances
- ./srv/env.yml:/codechat/src/env.yml:ro
- ./src/env.yml:/codechat/src/env.yml:ro
# environment:
# - DOCKER_ENV=true
# - LOG_LEVEL='ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK'
Expand Down Expand Up @@ -78,23 +78,23 @@ services:
networks:
- public-network

mongodb:
container_name: mongodb
image: mongo:6
restart: unless-stopped
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mysupersecretpassword
networks:
- public-network
# mongodb:
# container_name: mongodb
# image: mongo:6
# restart: unless-stopped
# volumes:
# - mongo_data:/data/db
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: mysupersecretpassword
# networks:
# - public-network

cache:
image: redis:7
restart: unless-stopped
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis_data:/data
networks:
- public-network
# cache:
# image: redis:7
# restart: unless-stopped
# command: redis-server --save 20 1 --loglevel warning
# volumes:
# - redis_data:/data
# networks:
# - public-network
50 changes: 0 additions & 50 deletions docs/swagger.conf.ts

This file was deleted.

Loading

0 comments on commit 0a16892

Please sign in to comment.