build: add additional compose file for devs

This commit is contained in:
Alexander Minkin 2024-10-29 22:11:06 +03:00 committed by veselcraft
parent 285e0704f1
commit 6b1d356268
No known key found for this signature in database
GPG key ID: 9CF0B42766CCF7BA
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/`. - OpenVK will be available at `http://localhost:8080/`.
- PHPMyAdmin will be available at `http://localhost:8081/`. - PHPMyAdmin will be available at `http://localhost:8081/`.
- Adminer will be available at `http://localhost:8082/`. - 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