Skip to content

Instantly share code, notes, and snippets.

@NamPNQ
Last active January 19, 2016 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NamPNQ/48f7721fb09abc787b54 to your computer and use it in GitHub Desktop.
Save NamPNQ/48f7721fb09abc787b54 to your computer and use it in GitHub Desktop.
Koel docker
  1. Install docker and docker-compose

  2. Download file https://github.com/NamPNQ/koel/blob/feature-docker/docker-compose.yml and https://github.com/NamPNQ/koel/blob/feature-docker/.env.example

  3. Rename .env.example to .env

  4. Edit .env

    APP_KEY: 16efa6c23c2e8c705826b0e66778fbe7
    DB_HOST=db
    DB_DATABASE=koel
    DB_USERNAME=root
    DB_PASSWORD=secret
    
  5. Run

    $ docker-compose build
    $ docker-compose run web php artisan migrate --force
    $ docker-compose run web php artisan db:seed --force
    $ docker-compose up -d
    
  6. Correct permission for mount file

    $ chmod +r ~/Music
    
  7. Go to http://localhost:8000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment