Skip to content

Commit

Permalink
project setup for docker development - mount config and dependencies …
Browse files Browse the repository at this point in the history
…locally
  • Loading branch information
alcalbg committed Apr 19, 2024
1 parent 19228a6 commit 44df0dc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
5 changes: 1 addition & 4 deletions README.md
Expand Up @@ -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)

Expand Down
12 changes: 11 additions & 1 deletion docker-compose-dev.yml
Expand Up @@ -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
5 changes: 1 addition & 4 deletions docs/development.md
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 44df0dc

Please sign in to comment.