Closed luandro closed 5 years ago
Hello @luandro,
check the path of your volumes you have set in the docker-compose.yml file :
volumes:
- /etc/localtime:/etc/localtime
- ./files/private:/var/www/files
- ./files/public:/var/www/html/public
- ./files/logs:/var/log/apache2
- ./config/ojs.config.inc.php:/var/www/html/config.inc.php
- ./config/apache.htaccess:/var/www/html/.htaccess
- ./config/php.custom.ini:/usr/local/etc/php/conf.d/custom.ini
you must have a file "./config/ojs.config.inc.php" in the directory where docker-compose.yml file is present,
syntax for volumes is
"the path on your hard-disk (could be a directory or a file)":"the path inside the docker image"
@Potomac54 and @marcbria
Thinking about @luandro 's problem, i think we should make this volumes path commented by default, we should always have an working docker-compose without changing anything. What you think guys?
Thanks.
yes it's a possibility, provide a docker-compose.yml where all volumes path will be commented, something which can make ojs "plug and play" by running "docker-compose up" command
Full agree. Docker and docker-compose should work "out of the box".
But it's ok if we add "clues" about how to improve them... for instance, adding commented lines to give persistence to your volumes as we are doing with adminer.
BTW, would be nice to "name" volumes. I will send you a PR as soon as I found time for it. Sorry a lot for the delay. I'm overwhelmed those days with the conference. :-(
I may be missing something. But I basically cloned this repo, changed
.env
and randocker-compose up
.This is the error I get:
Any tips on how to get this working? Am I missing something?
Cheers!