This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
networks: | |
laravel: | |
services: | |
nginx: | |
build: | |
context: ./docker | |
dockerfile: nginx.dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artisan: | |
build: | |
context: ./docker | |
dockerfile: php.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
container_name: artisan | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM composer:2 | |
# environment arguments | |
ARG UID | |
ARG GID | |
ARG USER | |
ENV UID=${UID} | |
ENV GID=${GID} | |
ENV USER=${USER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer: | |
build: | |
context: ./docker | |
dockerfile: composer.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
- USER=${USER:-laravel} | |
container_name: composer | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
NewerOlder