mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
build: add additional compose file for devs
This commit is contained in:
parent
285e0704f1
commit
6b1d356268
2 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
```
|
||||
|
|
20
install/automated/docker/docker-compose.dev.yml
Normal file
20
install/automated/docker/docker-compose.dev.yml
Normal 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
|
Loading…
Reference in a new issue