chore: add development workflow with compose watch

This commit is contained in:
Alexander Navarro 2025-02-05 16:47:26 -03:00
parent f937122a2a
commit 9194eccab9
4 changed files with 41 additions and 8 deletions

View file

@ -2,13 +2,17 @@ services:
index:
image: alecodes/index:latest
pull_policy: build
user: 1000:1000
build:
context: ..
dockerfile: ./docker/Dockerfile
develop:
watch:
- action: sync
path: ../src
target: /app
ports:
- 3000:8080
env_file: ../.env
volumes:
- ../src:/app
db:
image: postgres:17