ampache / ampache-docker

Ampache docker package
http://ampache.org
89 stars 68 forks source link

Possible to theme ampache-docker? #69

Open vinceTheProgrammer opened 2 years ago

vinceTheProgrammer commented 2 years ago

I installed the Ampache container only to realize that there was no ./themes directory to edit the theme of Ampache. I thought maybe if I installed it using the docker-compose method it might work, but while that did give me the ./data folder, I still don't see a way to edit the theme. Is there no way to edit the theme of Ampache while using this Docker container?

I'm new to Docker and Ampache.

Thanks in advance for clarifying this.

kuzi-moto commented 2 years ago

Hey @vinceTheProgrammer,

I have not been able to test out Ampache since the update to 5 but I believe that the themes directory should be found at /var/www/themes within the container. However, with the release to Ampache 5 this has changed to /var/www/public/themes. If you have updated then you will want to use the latter path.

You may map this to a volume by adding the following line under the volume: section in your docker-compose.yml file (with the currently available docker-compose file which needs an update to version 5):

    volumes:
      - ./data/config:/var/www/config
      - ./data/log:/var/log/ampache
      - ./data/media:/media
      - ./data/mysql:/var/lib/mysql
      - ./data/themes:/var/www/themes

I am not able to test this out, but I believe that Docker should populate this directory on starting the container if the path on the host machine is empty. But, the default theme will not receive any updates if the image updates in the future. I may recommend copying the default theme "reborn" and make a new folder then mount the path to that folder instead. I can elaborate is needed.

kuzi-moto commented 2 years ago

Note for @lachlan-00, I believe the docket compose file needs to be updated for Ampache 5.

lachlan-00 commented 2 years ago

Note for @lachlan-00, I believe the docket compose file needs to be updated for Ampache 5.

ah, crap. you'll be right. i definitely haven't run from compose....

vinceTheProgrammer commented 2 years ago

@kuzi-moto I added the line to my docker-compose file, made the folder, and copied the reborn theme folder to that newly created folder, and it worked! I now have the themes folder accessible from outside the container! Tysm!

lachlan-00 commented 2 years ago

Note for @lachlan-00, I believe the docket compose file needs to be updated for Ampache 5.

i think it's okay, i don't see anything obvious that needs changing for it so should actually be good