trr266 / otree_docker

A docker-compose setup for oTree 5.x
MIT License
1 stars 3 forks source link

docker-compose -p otree5 up --build #1

Open ytia opened 2 years ago

ytia commented 2 years ago

Hi,

I am new to docker and I am trying to build a docker image using this repo and thanks for sharing.

I am not sure what I did wrong, I create a folder named app and put all my otree code there inside the otree_docker-main folder and download this repo. Then I run docker-compose -p otree5 up --build at the terminal, and it says ....Downloads/otree_docker-main/secrets.env: no such file or directory.

Thanks!

joachim-gassen commented 2 years ago

Hi there:

Thanks for your kind words and for using our stuff. Have you edited the _secrets.env file and saved it as secrets.env? From the README:

"Then, you need to set the passwords for the oTree instance and the Postgres database. For this, copy the _secrets.env file to secrets.env and edit the passwords as well as the oTree API key. secrets.env is included in .gitignore to avoid accidental commits."

If this is not the culprit then I would verify that you are in the correct directory (the one of the repo) when calling docker-compose.

Good luck!

Joachim