Skip to content

Commit

Permalink
Docker fix and readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
bjuraszewski committed Jul 6, 2021
1 parent 6329fe5 commit 44d82bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ services:
if [ ! -f "/usr/src/init" ]; then
composer install
php artisan key:generate
sleep 15
php artisan migrate --seed
php artisan passport:install
touch /usr/src/init
fi
exec apache2-foreground
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ php artisan optimize
```

## Docker
Preparation
* Copy `.env.example` to `.env`.
* Configure DOCKER_PORT in .env to free port on your host eg.
```
DOCKER_PORT=3000
```

Create an environment
```
docker-compose up
Expand Down

0 comments on commit 44d82bc

Please sign in to comment.