Compare commits

..

No commits in common. "devstack" and "master" have entirely different histories.

3 changed files with 7 additions and 12 deletions

View File

@ -32,7 +32,6 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
restart: always restart: always
environment: environment:
- APP_PORT=8000
- DB_HOST=db - DB_HOST=db
- DB_USERNAME=root - DB_USERNAME=root
ports: ports:
@ -43,5 +42,5 @@ services:
- 9000 - 9000
- 80 - 80
- 443 - 443
volumes: # volumes:
- ./php/WebsiteAPI:/var/www/html # - ./WebsiteAPI:/var/www/html

View File

@ -33,7 +33,9 @@ WORKDIR /var/www/html
USER $user USER $user
# COPY ./WebsiteAPI /var/www/html/ COPY ./WebsiteAPI /var/www/html/
COPY ./entrypoint.sh /var/www/entrypoint.sh
CMD ["/var/www/entrypoint.sh"] RUN composer install
RUN composer update
CMD ["php","artisan","serve","--port=9000","--host=0.0.0.0"]

View File

@ -1,6 +0,0 @@
#!/bin/bash
composer install
composer update
php artisan migrate
php artisan serve --port=$APP_PORT --host=0.0.0.0