added docker functionality
This commit is contained in:
@@ -1,21 +1,20 @@
|
|||||||
services:
|
services:
|
||||||
# frontend:
|
frontend:
|
||||||
# container_name: frontend
|
container_name: frontend
|
||||||
# build: ./frontend
|
build: ./frontend
|
||||||
# ports:
|
|
||||||
# - "7002:7002"
|
|
||||||
# environment:
|
|
||||||
# - CHOKIDAR_USEPOLLING=true
|
|
||||||
# volumes:
|
|
||||||
# - ./frontend:/app
|
|
||||||
# - /app/node_modules
|
|
||||||
# restart: unless-stopped
|
|
||||||
|
|
||||||
backend:
|
|
||||||
container_name: backend
|
|
||||||
build: ./backend
|
|
||||||
ports:
|
ports:
|
||||||
- "7001:7001"
|
- "7002:7002"
|
||||||
|
environment:
|
||||||
|
- CHOKIDAR_USEPOLLING=true
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/bikelane-backend
|
- ./frontend:/app
|
||||||
|
- /app/node_modules
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
# backend:
|
||||||
|
# container_name: backend
|
||||||
|
# build: ./backend
|
||||||
|
# ports:
|
||||||
|
# - "7001:7001"
|
||||||
|
#volumes:
|
||||||
|
# - ./backend:/bikelane-backend
|
||||||
|
# restart: unless-stopped
|
||||||
|
@@ -9,4 +9,4 @@ COPY . .
|
|||||||
|
|
||||||
EXPOSE 7002
|
EXPOSE 7002
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "run", "dev"]
|
Reference in New Issue
Block a user