project setup for docker development - mount config and dependencies locally

This commit is contained in:
Milos Stojanovic
2024-04-19 09:58:16 +02:00
parent 19228a652d
commit 44df0dcf61
4 changed files with 14 additions and 10 deletions

View File

@@ -112,10 +112,7 @@ docker compose -f docker-compose-dev.yml up
```
Once everything is ready visit: [http://localhost:8080](http://localhost:8080) and login as admin/admin123, Ctrl+c to stop.
If you're tweaking dependencies then you must rebuild with:
```
docker compose -f docker-compose-dev.yml up --build
```
See `docker-compose-dev.yml` for more informations about configurations and dependencies.
## Project setup for development (Linux)

View File

@@ -7,6 +7,16 @@ services:
- "8080:8080" # frontend port, see package.json
- "8081:8081" # backend port, see package.json and .env.local
volumes:
# mount code:
- ./frontend:/var/www/filegator/frontend
- ./backend:/var/www/filegator/backend
#- ./configuration.php:/var/www/filegator/frontend/configuration.php
# mount custom configuration (create configuration.php file first):
#- ./configuration.php:/var/www/filegator/configuration.php
# mount php dependencies locally:
#- ./vendor:/var/www/filegator/vendor
#- ./composer.json:/var/www/filegator/composer.json
#- ./composer.lock:/var/www/filegator/composer.lock
# mount node dependencies locally:
#- ./node_modules:/var/www/filegator/node_modules
#- ./package.json:/var/www/filegator/package.json
#- ./package-lock.json:/var/www/filegator/package-lock.json

View File

@@ -11,10 +11,7 @@ docker compose -f docker-compose-dev.yml up
```
Once everything is ready visit: [http://localhost:8080](http://localhost:8080) and login as admin/admin123, Ctrl+c to stop.
If you're tweaking dependencies then you must rebuild with:
```
docker compose -f docker-compose-dev.yml up --build
```
See `docker-compose-dev.yml` for more informations about configurations and dependencies.
## Project setup for development (Linux)

View File

@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "concurrently \"php -S 0.0.0.0:8081\" \"vue-cli-service serve --port 8080\"",
"serve": "composer install && npm i && concurrently \"php -S 0.0.0.0:8081\" \"vue-cli-service serve --port 8080\"",
"build": "vue-cli-service build --no-clean",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e --headless",