Sounds like there is already another docker container with the exposed port 445. This has nothing to do with your forwards.
I think so, I try a numerous times in the past with technodad videos, but always receive errors.
Sounds like there is already another docker container with the exposed port 445. This has nothing to do with your forwards.
I think so, I try a numerous times in the past with technodad videos, but always receive errors.
You can check if anything is listening on port 445
lsof -i -P -n | grep 445
It seems smbd is listening on 445. I changed the exposed port for nextcloud to 450 in the docker-compose file.
In the yml file there is no docker section for duckdns. That throws my mind into a tailspin. Last year I put Nextcloud together (with many tears) according to the @TechnoDadLife video duo of Nextcloud/Mariadb and Nextcloud/Letsencrypt/Duckdns. So how does this work without the Duckdns token in the yml? Or maybe the How-to uses a generic version of the yml file and TOKEN needs to be added. Also I set my domain up to use my Duckdns subdomain (lets call it "abc") set up so my Nextcloud address would be abc.duckdns.org. For that I set ONLY-SUBDOMAINS=true. All of that worked great for about six months until I let my cert expire in order to create a fresh install of omv4 on a Odroid hc2, and got my cert but no site. I am still struggling with my config files, but that is for another post.
I tried to get started on the Docker-compose with a new machine running omv5. Yes, I know it is still beta, and no, I am not committing my family treasures to it yet. I just thought I would start working with it to be ready when omv5 becomes stable. After creating my yml file according to the How-to I went to start it all with docker-compose up -d I got root@m4omv5:/home/docker1/nextcloud# docker-compose up -d/usr/local/bin/docker-compose: line 1: Not: command not found
I installed docker-compose at the first and did all the steps according to the How-to up to that point.
What did I do wrong? Is this not intended for omv5?
I also had the problem. I solved it by creating a symlink ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose.
EDIT: This did not survive a reboot.
So how does this work without the Duckdns token in the yml?
You only need the token if you choose VALIDATION=duckdns
In the yml file there is no docker section for duckdns.
You can add it yourself. Just add this in the docker-compose.yml
duckdns:
image: linuxserver/duckdns
container_name: duckdns
environment:
- PUID=1000 #change according to your user
- PGID=100 #change according to your user
- TZ=yourTZ
- SUBDOMAINS=subdomain1,subdomain2
- TOKEN=token
restart: unless-stopped
Or maybe the How-to uses a generic version of the yml file and TOKEN needs to be added.
Nope, I guess @macom left it out so you can also use other dyndns-providers.
So why is the symlink necessary in the first place?
Good question. Never had to use it. Neither in OMV4 nor in OMV5. But it might be that on OMV5 it was not working after enabling portainer and docker in the GUI and that I just installed it again from the CLI with apt-get install docker-compose
I ran root@m4omv5:~# ln -s /usr/bin/docker-compose /usr/local/bin/docker-composeln: failed to create symbolic link '/usr/local/bin/docker-compose': File exists
And I'm still getting root@m4omv5:/home/docker1/nextcloud# docker-compose up -d/usr/local/bin/docker-compose: line 1: Not: command not found
I don't know what I'm doing wrong because when I enter docker-compose up -d the response is always /usr/local/bin/docker-compose: line 1: Not: command not found
I am also unable to create a symlink. The response i receive is ln: failed to create symbolic link '/usr/local/bin/docker-compose': File exists
I'm running omv 5.0.10-1 with omv-extras 5.1.1 on a NanoPi M4 and everything is running great. If it makes any difference Cockpit still will not install, but I would only use it for the command line so I don't need it.
Install it from CLI
apt-get install docker-compose
Install it from CLI
I've done that already...
root@m4omv5:~# apt-get install docker-composeReading package lists... DoneBuilding dependency tree Reading state information... Donedocker-compose is already the newest version (1.21.0-3).0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Try
apt-get reinstall docker-compose
Try
apt-get reinstall docker-compose
Still no...
root@m4omv5:~# apt-get reinstall docker-compose
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 108 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian buster/main arm64 docker-compose all 1.21.0-3 [108 kB]
Fetched 108 kB in 1s (105 kB/s)
(Reading database ... 53431 files and directories currently installed.)
Preparing to unpack .../docker-compose_1.21.0-3_all.deb ...
Unpacking docker-compose (1.21.0-3) over (1.21.0-3) ...
Setting up docker-compose (1.21.0-3) ...
Processing triggers for man-db (2.8.5-2) ...
root@m4omv5:~# cd /home/docker1/nextcloud/
root@m4omv5:/home/docker1/nextcloud# docker-compose up -d
/usr/local/bin/docker-compose: line 1: Not: command not found
root@m4omv5:/home/docker1/nextcloud# ls
docker-compose.yml
Display More
Delete the symlink you created in /usr/local/bin
Oh my! I’m sorry. That’s a new one for me. Can you give me the command for that? Thanks in advance.
I googled and I think I figured it out.
rm or unlink followed by the second part of the previous symlink command.
Like,
unlink /usr/local/bin/docker-compose
I’ll try that later when I get home. (If that’s right?)
Hi. Thx for the thread!
I do have one question:
How does it work with SSL (https) when I „not“ want to publish the Nextcloud to the internet and don’t want to forward the ports.
I want to use it solely within my network. Access from outside only via VPN.
but I want the Nextcloud to be https only.
At least I get a different response to docker-compose up -d this time around:
root@m4omv5:/home/docker1/nextcloud# docker-compose up -d
Creating network "nextcloud_default" with the default driver
ERROR: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-0b1adf19895e -j DOCKER: iptables v1.8.2 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain FORWARD
(exit status 4)
all I did was run apt-get reinstall docker-compose and then the up -d command above. What have I done now?
Hi. Thx for the thread!
I do have one question:
How does it work with SSL (https) when I „not“ want to publish the Nextcloud to the internet and don’t want to forward the ports.
I want to use it solely within my network. Access from outside only via VPN.
but I want the Nextcloud to be https only.
Create an exception in your browser to accept the untrusted cert of your local nextcloud. In the docker-compose file delete/comment out the letsencrypt part. Uncomment the 450:443 port expose of nextcloud and access it via https://ip_to_your_server:450
What have I done now?
No idea. Just tried in a VM with OMV5 and the docker-compose file is working.
Maybe start again with a fresh install?
Don’t have an account yet? Register yourself now and be a part of our community!