Closed viasux closed 1 year ago
possibly related to #168
even with the updated docker-compose, the issue persists:
version: '3'
services:
koel:
image: phanan/koel
depends_on:
- database
ports:
- 87:87
environment:
- DB_PORT=5432
- DB_CONNECTION=pgsql
- DB_HOST=database
- DB_USERNAME=koel
- DB_PASSWORD=password
- DB_DATABASE=koel
volumes:
- music:/music
- covers:/var/www/html/public/img/covers
- search_index:/var/www/html/storage/search-indexes
database:
image: postgres:13
volumes:
- db:/var/lib/postgresql/data'
environment:
- POSTGRES_DB=koel
- POSTGRES_USER=koel
- POSTGRES_PASSWORD=password
volumes:
db:
driver: local
music:
driver: local
covers:
driver: local
search_index:
driver: local
the issue was using docker-compose
instead of docker compose
I keep getting the error, "WARN Cannot connect to the database. Let's set it up."
relevant output from docker ps:
docker exec --user www-data -it docker_koel_1 bash www-data@:~/html$ php artisan koel:init --no-assets:
docker compose: