Sign inSign up

javi98/laravel-client-juegos-api

By javi98

•Updated over 2 years ago

Docker image Laravel aplication juegos client api crud

Image
Languages & frameworks
Web servers
0

3.2K

javi98/laravel-client-juegos-api repository overview

⁠Laravel aplication api client juegos crud

revive

Docker image Laravel api juegos crud

Github repository: https://github.com/JAVI-CC/Laravel-API-Client⁠

⁠Setup
$ 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:generate

In 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 .

⁠docker-compose.yml
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: bridge

Once you have the containers deployed, you can access http://localhost:8001⁠

Tag summary

Content type

Image

Digest

sha256:c1a11e46e…

Size

253.6 MB

Last updated

over 2 years ago

docker pull javi98/laravel-client-juegos-api