Skip to content

Commit

Permalink
fix: Docker hot reloading using bind mounts for dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
geekyharsh05 committed Oct 3, 2024
1 parent 9df1eea commit f5055a9
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,9 @@ services:
condition: service_healthy
redis:
condition: service_healthy
develop:
watch:
- action: sync
path: ./next-app
target: /usr/src/app
ignore:
- node_modules/
- action: rebuild
path: ./next-app/package.json
target: /usr/src/app
ignore:
- node_modules/
volumes:
- ./next-app:/usr/src/app
- /usr/src/app/node_modules

postgres:
container_name: prisma-postgres
Expand All @@ -49,7 +40,8 @@ services:
env_file:
- path: ./next-app/.env
depends_on:
- app
- postgres:
condition: service_healthy
ports:
- ${PRISMA_STUDIO_PORT}:5555

Expand Down Expand Up @@ -87,18 +79,9 @@ services:
condition: service_healthy
redis:
condition: service_healthy
develop:
watch:
- action: sync
path: ./ws
target: /usr/src/app
ignore:
- node_modules/
- action: rebuild
path: ./ws/package.json
target: /usr/src/app
ignore:
- node_modules/
volumes:
- ./ws:/usr/src/app
- /usr/src/app/node_modules

volumes:
postgres-data:
Expand Down

0 comments on commit f5055a9

Please sign in to comment.