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
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NODE_PORT=3001
MONGO_PORT=27017
MONGO_CONN_STRING=""
MONGO_NAME=""
COLLECTION_NAME=""
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"singleQuote": true
}
18 changes: 16 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,31 @@ services:
container_name: ts-catservice-docker
restart: always
ports:
- 3001:${PORT}
- 3001:${NODE_PORT}
env_file:
- .env
build:
context: .
target: production
args:
- PORT=${PORT}
- PORT=${NODE_PORT}
volumes:
- volume:/usr/src/app
- ignore:/usr/src/app/node_modules/
networks:
- catservice-network
depends_on:
- mongo-database
mongo-database:
container_name: mongo-database
image: mongo
ports:
- 27017:${MONGO_PORT}
networks:
- catservice-network
networks:
catservice-network:
driver: bridge
volumes:
ignore:
volume:
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig([
{ files: ["**/*.md"], plugins: { markdown }, language: "markdown/gfm", extends: ["markdown/recommended"] },
{ rules: {
...tseslint.configs.recommended.rules,
"no-explicit-any": "warn"
"no-explicit-any": "warn",
"quotes": ["error", "single"]
}}
]);
Loading