generated from alecodes/base-template
chore: add development workflow with compose watch
This commit is contained in:
parent
f937122a2a
commit
9194eccab9
4 changed files with 41 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue