Skip to content

Instantly share code, notes, and snippets.

@elvinlari
Last active September 30, 2022 19:22
Show Gist options
  • Save elvinlari/3f7ee9d9a495c608dc0f1053a61896f5 to your computer and use it in GitHub Desktop.
Save elvinlari/3f7ee9d9a495c608dc0f1053a61896f5 to your computer and use it in GitHub Desktop.
Composer service
composer:
build:
context: ./docker
dockerfile: composer.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
- USER=${USER:-laravel}
container_name: composer
volumes:
- ./src:/var/www/html
- .env:/var/www/html/.env
working_dir: /var/www/html
depends_on:
- php
user: ${USER:-laravel} #system user
profiles: ["composer"]
entrypoint: ['composer', '--ignore-platform-reqs']
networks:
- laravel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment