Edit your OS hostfile and add 3 entries:
127.0.0.1 web
127.0.0.1 collabora
127.0.0.1 onlyoffice
Open a terminal
-
git clone https://github.com/drupol/wopi-app.git
-
cd wopi-app
-
Create a file
.env.local
with the following content:APP_ENV=local DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
-
docker-compose up
This will open the following ports:
- 8080 (web)
- 80 (onlyoffice)
- 9980 (collabora)
Open a new terminal
cd wopi-app
docker-compose exec web /bin/bash
composer self-update --2
composer install -n
bin/console lexik:jwt:generate-keypair
bin/console doctrine:database:create
bin/console doctrine:schema:create
chmod 777 var/data.db
Once it's done, the web app should be available at http://web:8080/.
The WOPI clients Collabora and OnlyOffice are available at wopiclient:9980
and wopiclient:80
respectively.