Skip to content
Snippets Groups Projects
Commit 4c2bbc14 authored by Yehor Potebenko's avatar Yehor Potebenko
Browse files

feat: scale backend instance

parent 8234f63a
No related branches found
No related tags found
No related merge requests found
server {
listen 3000;
location / {
proxy_pass http://backend:3000;
}
}
\ No newline at end of file
version: '1.0.0'
version: '3'
services:
frontend:
......@@ -23,9 +23,9 @@ services:
dockerfile: Dockerfile
env_file:
- .env
container_name: node-server
ports:
- '${BACKEND_PORT}:${BACKEND_PORT}'
# container_name: node-server
# ports:
# - '${BACKEND_PORT}:${BACKEND_PORT}'
restart: always
depends_on:
- database
......@@ -39,6 +39,17 @@ services:
image: mongo
container_name: mongo-db
nginx:
image: nginx:latest
volumes:
- ./conf.d:/etc/nginx/conf.d
depends_on:
- backend
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
networks:
- letsDo-network
networks:
letsDo-network:
driver: bridge
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment