Skip to content

Instantly share code, notes, and snippets.

View elvinlari's full-sized avatar
🎯
Focusing

Elvin Lari elvinlari

🎯
Focusing
View GitHub Profile
@elvinlari
elvinlari / docker-compose.yml
Last active July 31, 2023 09:10
Docker Compose yaml file
version: '3'
networks:
laravel:
services:
nginx:
build:
context: ./docker
dockerfile: nginx.dockerfile
@elvinlari
elvinlari / npm-commands.csv
Last active September 23, 2022 08:43
NPM commands.
docker service npm command normal npm command
docker-compose run --rm npm install npm install
docker-compose run --rm npm install @myorg/privatepackage npm install @myorg/privatepackage
docker-compose run --rm npm run build npm run build
docker-compose run --rm --service-ports npm run dev npm run dev
@elvinlari
elvinlari / artisan-commands.csv
Last active September 23, 2022 08:07
Artisan commands
docker service artisan command normal artisan command
docker-compose run --rm artisan config:cache php artisan config:cache
docker-compose run --rm artisan optimize php artisan optimize
docker-compose run --rm artisan serve php artisan serve
docker-compose run --rm artisan route:list php artisan route:list
@elvinlari
elvinlari / composer-commands.csv
Last active September 23, 2022 07:42
Composer commands.
docker service composer command normal composer command
docker-compose run --rm composer create-project laravel/laravel project-name composer create-project laravel/laravel project-name
docker-compose run --rm composer install composer install
docker-compose run --rm composer update composer update
docker-compose run --rm composer dump-autoload composer dump-autoload
docker-compose run --rm composer require laravel/breeze --dev composer require laravel/breeze --dev
@elvinlari
elvinlari / docker-compose.yml
Created September 23, 2022 04:24
NPM service
npm:
image: node:alpine
container_name: npm
volumes:
- ./src:/var/www/html
- .env:/var/www/html/.env
ports:
- 3000:3000
- 3001:3001
working_dir: /var/www/html
@elvinlari
elvinlari / docker-compose.yml
Created September 23, 2022 04:21
Artisan service
artisan:
build:
context: ./docker
dockerfile: php.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
- USER=${USER:-laravel}
container_name: artisan
volumes:
@elvinlari
elvinlari / composer.dockerfile
Last active September 30, 2022 13:48
Composer custom dockerfile
FROM composer:2
# environment arguments
ARG UID
ARG GID
ARG USER
ENV UID=${UID}
ENV GID=${GID}
ENV USER=${USER}
@elvinlari
elvinlari / docker-compose.yml
Last active September 30, 2022 19:22
Composer service
composer:
build:
context: ./docker
dockerfile: composer.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
- USER=${USER:-laravel}
container_name: composer
volumes:
@elvinlari
elvinlari / docker-compose.yml
Last active September 23, 2022 03:50
Migration and seeder service
laravel-migrate-seed:
build:
context: ./docker
dockerfile: php.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
- USER=${USER:-laravel}
container_name: laravel-migrate-seed
volumes:
@elvinlari
elvinlari / docker-compose.yml
Last active September 22, 2022 19:11
PhpMyAdmin service.
phpmyadmin:
image: phpmyadmin:5.2.0
container_name: phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: ${DB_HOST}
PMA_USER: ${DB_USERNAME}
PMA_PASSWORD: ${DB_PASSWORD}
PMA_PORT: ${DB_PORT}
depends_on: