Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
version: "3.1"

services:
db:
api:
container_name: api
image: node:11
restart: always
volumes:
- ./src:/var/www/src
- ./node_modules:/var/www/node_modules
- ./package.json:/var/www/package.json
- ./nodemon.json:/var/www/nodemon.json
- ./tsconfig.json:/var/www/tsconfig.json
build: .
ports:
- 8080:8080
depends_on:
- mongo
mongo:
container_name: mongoDB
image: mongo:latest
restart: always
Expand Down
4 changes: 2 additions & 2 deletions src/constants/pokeApi.constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const PORT = 9001;
export const PORT = 8080;
export const WELCOME_MESSAGE = "Welcome to pokeAPI REST by Nya ^^";
export const MONGO_URL = "mongodb://localhost:27017/Pokemon";
export const MONGO_URL = "mongodb://mongo:27017/Pokemon";