Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
erenfn authored Nov 16, 2024
1 parent a3809b8 commit dd74ba0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,29 @@ services:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
# frontend:
# build: ./frontend
# volumes:
# - ./frontend:/app
# - /app/node_modules
# ports:
# - "4173:4173"
# develop:
# watch:
# - action: sync
# path: ./frontend
# target: /app
# ignore:
# - node_modules/
# environment:
# - NODE_ENV=${NODE_ENV:-development}
# command: >
# bash -c "
# if [ \"$NODE_ENV\" = \"development\" ]; then
# npm run dev;
# elif [ \"$NODE_ENV\" != \"development\" ]; then
# npm run build && npm run preview;
# fi"
frontend:
build: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "4173:4173"
develop:
watch:
- action: sync
path: ./frontend
target: /app
ignore:
- node_modules/
environment:
- NODE_ENV=${NODE_ENV:-development}
command: >
bash -c "
if [ \"$NODE_ENV\" = \"development\" ]; then
npm run dev;
elif [ \"$NODE_ENV\" != \"development\" ]; then
npm run build && npm run preview;
fi"
mailhog:
image: mailhog/mailhog
ports:
Expand Down

0 comments on commit dd74ba0

Please sign in to comment.