This commit is contained in:
Jake Kasper
2025-09-02 07:40:22 -05:00
parent 714f90bb1a
commit 47bfd404a7
3 changed files with 6 additions and 32 deletions

View File

@@ -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: