Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(help needed) Guide to new Docker users (Portainer) #1714

Open
PauFCB opened this issue Oct 14, 2023 · 1 comment
Open

(help needed) Guide to new Docker users (Portainer) #1714

PauFCB opened this issue Oct 14, 2023 · 1 comment

Comments

@PauFCB
Copy link

PauFCB commented Oct 14, 2023

Hi, I'm new with Docker, is there a step by step guide to install Koel using Portainer? I try with the guide but don't know what to do馃槄 thank you

@dmuiX
Copy link

dmuiX commented Nov 6, 2023

What did not work?

Doing it with docker-compose is straight forward:

  1. create directory koel wherever u want eg. mkdir ~/DockerCompose/koel and cd ~/DockerCompose/koel
  2. Download either docker-compose.mysql.yml or https://github.com/koel/docker/blob/master/docker-compose.postgres.yml from
    https://github.com/koel/docker
  3. change passwords <root_password> and <koel_password>
    and ports eg:
ports:
  - 8880:80

and the volume of your music folder eg:

volumes:
  - Enter Your absolute Music PATH:/music
  - covers:/var/www/html/public/img/covers
  - search_index:/var/www/html/storage/search-indexes

delete music volume:

volumes:
  music:
    driver: local

3.1 maybe you need to do sudo chown 33:33 Enter Your absolute Music PATH.
5. rename to docker-compose.yml (easier^^) or leave as is
6. do docker-compose up -d or if you haven't changed the name docker-compose up -d -f docker-compose.mysql.yml

portainer:

  1. Go to stacks
  2. click add new stack
  3. leave Build method on web-editor
  4. name: eg. koel
  5. In the field Web editor paste content from the above docker-compose.mysql.yml or docker-compose.postgres.yml
  6. change password and ports

Find out container name:
in terminal enter:
docker ps
and look for koel without database in it

init:
docker exec --user www-data -it <container_name_for_koel> php artisan koel:init --no-assets

change admin password:
docker exec --user www-data -it <container_name_for_koel> php artisan koel:admin:change-password

sync db:
docker exec --user www-data -it <container_name_for_koel> php artisan koel:sync -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants