-
Notifications
You must be signed in to change notification settings - Fork 54
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgress is set but tries to use sqlite? #189
Comments
If I connect without a user and run the command, it runs fine?
But the error with the access to the database remains. |
Fix for your compose: services:
koel:
image: phanan/koel
container_name: koel
depends_on:
- database
ports:
- 8181:80
environment:
- DB_CONNECTION=pgsql
- DB_HOST=koel-database
- DB_PORT=5432
- DB_USERNAME=koel
- DB_PASSWORD=password
- DB_DATABASE=koel
- APP_KEY=appkey
volumes:
# - /mnt/user/data/media/koel-music:/music
# - /mnt/cache/appdata/koel/covers:/var/www/html/public/img/covers
# - /mnt/cache/appdata/koel/search_index:/var/www/html/storage/search-indexes
- music:/music
- covers:/var/www/html/public/img/covers
- search_index:/var/www/html/storage/search-indexes
networks:
- koel-network
database:
image: postgres:13
container_name: koel-database
volumes:
# - /mnt/cache/appdata/koel/db:/var/lib/postgresql/data
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=koel
- POSTGRES_USER=koel
- POSTGRES_PASSWORD=password
networks:
- koel-network
networks:
koel-network:
driver: bridge
# Add following
volumes:
music:
driver: local
driver_opts:
o: bind
type: none
device: /mnt/user/data/media/koel-music
covers:
driver: local
driver_opts:
o: bind
type: none
device: /mnt/cache/appdata/koel/covers
search_index:
driver: local
driver_opts:
o: bind
type: none
device: /mnt/cache/appdata/koel/search_index
db:
driver: local
driver_opts:
o: bind
type: none
device: /mnt/cache/appdata/koel/db
|
you changed my bindings to volumes but how does that fix my problem? |
It looks like a permission issue. Adding +w on directories solved this for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After this koel/koel#1811 I setup the container on another server.
Accesssed the docker like this:
docker exec --user www-data -it koel bash
Tried to run
php artisan koel:init --no-assets
command but it fails because it cannot migrate. After looking at the logs it says it cannot open the database file and its using the sqliteEngine? System is running Unraid with docker-compose.docker-compose.yml:
Logs:
The text was updated successfully, but these errors were encountered: