react-express-mongodb: rename server to backend
The goal here is to keep the same structure than the other examples. Also, considering that it has a "frontend" folder, the equivalent for the server should be "backend". Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
committed by
Guillaume Lours
parent
e29f0d1c54
commit
be8875c9b6
@@ -16,16 +16,17 @@ services:
|
||||
networks:
|
||||
- react-express
|
||||
depends_on:
|
||||
- server
|
||||
server:
|
||||
container_name: server
|
||||
- backend
|
||||
|
||||
backend:
|
||||
container_name: backend
|
||||
restart: always
|
||||
build:
|
||||
context: server
|
||||
context: backend
|
||||
args:
|
||||
NODE_PORT: 3000
|
||||
volumes:
|
||||
- ./server:/usr/src/app
|
||||
- ./backend:/usr/src/app
|
||||
- /usr/src/app/node_modules
|
||||
depends_on:
|
||||
- mongo
|
||||
@@ -44,4 +45,3 @@ services:
|
||||
networks:
|
||||
react-express:
|
||||
express-mongo:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user