Docker image Laravel aplication juegos client api crud
444
Docker image Laravel api juegos crud
Github repository: https://github.com/JAVI-CC/Laravel-API-Client
$ git clone https://github.com/JAVI-CC/Laravel-API-Client.git
$ cd Laravel-API-Client
$ cp .env.example .env
$ docker-compose up -d
$ docker-compose exec app php artisan key:generateIn case you are using your IDE to develop the application and it odes not detect the files it contains within the vendor folder, you have to copy the files from the vendor folder of the container to the host machine with the following command.
$ docker compose cp app:/var/www/vendor .version: "3"
services:
app:
build:
args:
user: javi
uid: 1000
context: .
dockerfile: Dockerfile
image: javi98/laravel-client-juegos-api:1.0.0
container_name: laravel-client-juegos-api-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
- /var/www/vendor
- ./docker-config/php/php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
nginx:
image: nginx:alpine
container_name: laravel-client-juegos-api-web
restart: unless-stopped
ports:
- "8001:80"
volumes:
- ./:/var/www
- ./docker-config/nginx:/etc/nginx/conf.d
networks:
laravel-client-juegos-api:
driver: bridgeOnce you have the containers deployed, you can access http://localhost:8001
Content type
Image
Digest
sha256:c1a11e46e…
Size
253.6 MB
Last updated
about 2 years ago
docker pull javi98/laravel-client-juegos-api