Closed Llibyddap closed 4 years ago
After hitting the submit button, I parsed the error messages much closer to make sure I hadn't configured something wrong... It turns out that there was a directory within the config folder named inventree_dev_vhost.conf
.
When i checked the repository, I noted that the config directory isn't actually part of the file structure. I'm guessing that when I did the original docker-compose up
command it added the directory and a sub-directory called inventree_dev_vhost.conf
looking for the file (I tried running test.yml
separately). When I did a move for the .conf
file in VSCode it combined the directory so that it looked like just the config directory.
In any event, I'll confess that I broke the first rule and didn't follow the instructions.
Happens to the best of us! It is quite a bit to read.
Yeah that's one annoying quirk with Docker Compose, I've had that happen with the secrets.txt too.
I stumbled upon the same problem, but I don't know docker well enough to understand what is happening here (punny electronician I am :P ).
Here is what I am doing;
I'm cloning the github repo,
cd into it,
mkdir config,
cp docker-compose.yml and production.yml into ./config,
then make my modifications (setting migrate to true and django create superuser also...)
and then I execute docker-compose -f docker-compose.yml -f production.yml -p inventree up -d
.
I tried to launch from ./inventree-docker and from ./config and got the same error...
I see that something created an inventree_vhost.conf folder when launched from the repo root. Or something created ./config/config/inventree_vhost.conf an migrated my ymls to the repo root when trying to start from ./config.
I'm missing something here.
Okay I think I found my way. I was missing almost all the configuration files. All of those needs to be copied into ./config right?
I was checking out your docker work on the Inventree Project. I was able to expose port 8000 on the Inventree container and then run
docker-compose up
to get the entire stack up and running onlocalhost:8000
. But of course I was missing all your configuration work.When I followed the readme, (which includes moving the
inventree_dev_vhost.conf
under theconfig
folder) and ran the following command:docker-compose -f docker-compose.yml -f test.yml up -d
it throws an error...
The error is generated (I think) from this line in the
test.yml
:` volumes:
I'm guessing that the
nginx
mapping is wrong(?).If you don't experience a similar error, let me know and I'll see if I can figure out what's wrong on my end. I'm not much of a programmer, but have managed to learn quite a bit from how you've deployed your stack... Thanks.
docker version: 2.2.0.0 running on macOS 10.15.2 (Catalina).