-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issues deploying with docker / portainer #27
Comments
Are you receiving any error messages? |
Here is the full log: https://pastebin.com/nXBur8iv |
Hey @tiritibambix, it looks like you are setup to listen on port 8008, are you using that port when you attempt to navigate in the browser? |
Hello. .env file only has an hashed key. Are there any value I mandatory need to populate it with maybe ? |
Try |
It returned When I go to
|
I stull struggle. Why is it asking for caddy ? Any help would be greatly appreciated. |
Hello again, just looking at your logs, it looks like your container was successfully started. I haven’t gotten the chance to debug your compose file, but have you by chance been able to run the example docks setup included here? |
Hello and sorry for the late answer. I tried to run the example docks setup included here with my (OMV) paths
I also tried to adapt it to docker-compose:
When I go to |
Bumping this up as I still haven't found a solution |
I'm not sure if this is true of all platforms, but typically |
I am not sure I am really competent to properly answer this question, but this is how Open Media Vault names shared folders. So let's say I mount a volume / "file system" in OMV, and it names it Here's a screenshot to illustrate this. This is exactly how I run and store data for my containers since I started learning 2 years ago. I don't know any other method. |
OMV is.... weird about mount stuff compared to other Debian-based distros. (even between versions) Since you have shell access, can you |
It is indeed exactly the same |
Oh, I just noticed that HOST isn't defined in your most recent examples. I believe that's what Caddy uses to decide what port to use. Since your ports are defined as 8178 (internal) and 80 (external), you'll need to include |
Er, sorry, I got the syntax of My advice about using the same ports across the board still remains, though. I personally use port 2000 and use nginx to reverse proxy 80 (or rather, I use 443 with my own managed certbot cert and |
I fear all this is beyond my understanding. I got OMV's management interface set to 82, Nginx Proxy Manager interface set to 81, and I never use port 80 with my containers as it is used by nginx to go outside. My ports are configured as follow in my nginx proxy manager docker-compose:
With all services I use, I always change the first port on the left and leave the port on the right as it is hard coded in the container. So I'm lost with your suggestion of using 80:8178. When I look at your Dockerfile
So I don't get why I would have to change that. Anyway, I tried all sorts of possibilities with ports, and everyone of them lead me to As an example, Here is a docker-compose for Homepage:
Original ports were I have to admit that deploying a container was never this hard before 😅 |
This is not true anymore since I added |
The expected container port used by Caddy the web server used by the docker image) is set by the HOST envvar, it's not hard-coded. Would you mind elaborating on, "used by nginx to go outside"? Nginx just serves files on whatever port is defined in a given Im not using a dockerfile-- I use runtime flags and environment variables to define my ports. (Note that I'm not the dev, just another user.) I honestly don't like docker at all, but I haven't had time to figure out a bare metal installation method. Something something php socks... |
They are just the HTTP and HTTPS public ports. So I need them free to be used by Nginx Proxy Manager and that is why I don't use them with other containers. So did you use docker Cli to deploy ? Mind sharing it ? |
This is the line I use to start the container:
My nginx server directive looks like this:
A few caveats to my setup:
|
Thank you very much. So I took inspiration from your config and put
I just land on a I wish @mdshack could have a look at this 😇 |
Is it a Caddy 500 error or an nginx 500? (Caddy is light grey text on a dark grey background; nginx is black text on white bg unless changed) |
|
Ah, that looks like an nginx 500. Not a 504, though, which would indicate something wrong with the container's setup, so something's up with the nginx config. Unfortunately since I do everything bare metal (as opposed to using something like OMV) my actual utility here may be limited. |
You've already done so much. Thanks a lot for your time and for trying to help me !! |
Oh, wait, interesting, that is a Caddy 500. I haven't seen it look like that before! Well at a minimum that means your host config is fine and something is up with either the image or the files... Perhaps check the owner of all the mounted files to make sure they're all owned by 82:82. |
So, someone one Lemmy helped me out and gave me this docker-compose:
That means we have to use the volume instead of a bind mount for I must find a way to bind |
Ah hah! I should have seen that. See #31. I'm using a bind mount and it worked flawlessly once I created the subdirectories and |
Ok so my solution was this:
Thank you @EmberHeartshine |
Hello.
I'm a portainer user and wanted to try shotshare as is looks exactly like what I need :)
I followed these steps:
sudo mkdir Shotshare and cd into this directory
sudo touch .env database.sqlite
sudo chown 82:82 .env database.sqlite
and then tried this docker-compose:
I does not work. Can you help me understand why ?
Thank you
The text was updated successfully, but these errors were encountered: