Skip to content

Commit

Permalink
Added watchmode to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanerix committed Oct 9, 2024
1 parent 5f652e6 commit ca3abfa
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
services:
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- POSTGRES_DB=PrimaryDB
ports:
- '5432:5432'

server:
build: .
restart: always
ports:
- '8080:8080'
depends_on:
- postgres
volumes:
- logs:/var/app/logs
- messages:/var/app/messages
develop:
watch:
- action: rebuild
path: ./server

volumes:
logs:

0 comments on commit ca3abfa

Please sign in to comment.