fix shit
This commit is contained in:
@@ -11,19 +11,11 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
command: >-
|
||||
sh -lc "
|
||||
if [ ! -d node_modules ] || [ -z \"$(ls -A node_modules 2>/dev/null)\" ]; then
|
||||
echo '[frontend] Installing dependencies...';
|
||||
npm install --silent;
|
||||
fi;
|
||||
npm start
|
||||
"
|
||||
environment:
|
||||
- REACT_APP_API_URL=https://turftracker.kaspers.us/api
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- frontend_node_modules:/app/node_modules
|
||||
- /app/node_modules
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
@@ -43,14 +35,6 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
command: >-
|
||||
sh -lc "
|
||||
if [ ! -d node_modules ] || [ -z \"$(ls -A node_modules 2>/dev/null)\" ]; then
|
||||
echo '[backend] Installing production dependencies...';
|
||||
npm install --only=production --silent;
|
||||
fi;
|
||||
npm start
|
||||
"
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- DB_HOST=db
|
||||
@@ -67,7 +51,7 @@ services:
|
||||
- FRONTEND_URL=https://turftracker.kaspers.us
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- backend_node_modules:/app/node_modules
|
||||
- /app/node_modules
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
@@ -115,5 +99,3 @@ services:
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
frontend_node_modules:
|
||||
backend_node_modules:
|
||||
|
||||
Reference in New Issue
Block a user