build: add additional compose file for devs

This commit is contained in:
Alexander Minkin 2024-10-29 22:11:06 +03:00
parent 250c022bde
commit b557f42daa
Signed by untrusted user: WerySkok
GPG key ID: 88E9A2F3AFE44C30
2 changed files with 26 additions and 0 deletions

View file

@ -47,3 +47,9 @@ Start is simple as `docker compose up -d`. You can also use `docker compose up`
- OpenVK will be available at `http://localhost:8080/`.
- PHPMyAdmin will be available at `http://localhost:8081/`.
- Adminer will be available at `http://localhost:8082/`.
### Running in development environment
By using additional `docker-compose.dev.yml` file you can develop OpenVK in Docker with automatic updates as you edit and save your code. Simply run:
```
docker compose -f docker-compose.yml -f docker-compose.dev.yml up --watch
```

View file

@ -0,0 +1,20 @@
services:
openvk:
build:
context: ../../..
dockerfile: install/automated/docker/openvk.Dockerfile
develop:
watch:
- path: ../../..
action: sync
target: /opt/chandler/extensions/available/openvk
ignore:
- vendor/
- path: ../../../composer.json
action: rebuild
- path: ../../../composer.lock
action: rebuild
- path: ../../../Web/static/js/package-lock.json
action: rebuild
- path: ../../../Web/static/js/package.json
action: rebuild