Skip to content

Instantly share code, notes, and snippets.

@elvinlari
Created September 23, 2022 04:21
Show Gist options
  • Save elvinlari/64134e661df070c6d5c3762163d39f25 to your computer and use it in GitHub Desktop.
Save elvinlari/64134e661df070c6d5c3762163d39f25 to your computer and use it in GitHub Desktop.
Artisan service
artisan:
build:
context: ./docker
dockerfile: php.dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
- USER=${USER:-laravel}
container_name: artisan
volumes:
- ./src:/var/www/html
- .env:/var/www/html/.env
depends_on:
- mysql
working_dir: /var/www/html
profiles: ["artisan"]
entrypoint: ['php', '/var/www/html/artisan']
networks:
- laravel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment