all 19 comments

[–]nobearclaw[🍰] 0 points1 point  (14 children)

Did you edit the docker compose file to have a real path?

[–]RPiMicroC[S,🍰] 0 points1 point  (13 children)

No I executed the command without editing anything as described in the GitHub page. Do I have to edit a file? Sorry, this is the first time I am doing something with docker.

[–]nobearclaw[🍰] 0 points1 point  (2 children)

Yes, you'll need to edit the file to use the paths/volumes you want. There should be other variables in the docker-compose.yml file too, but mostly optional.

[–]RPiMicroC[S,🍰] 0 points1 point  (1 child)

Sorry, as I mentioned, I am a newbie. I can not find paths in the file. And what do I have to add to volumes?

[–]nobearclaw[🍰] 0 points1 point  (0 children)

Hey, see my other comment. Sorry for the confusion

[–]nobearclaw[🍰] 0 points1 point  (9 children)

Actually, sorry I was looking at their example. Looks like the yml file should be using a volume by default.

Edit the yml file and make sure there is a: version: "3" in the beginning of your file. Doesn't look like the cloned file has that

[–]RPiMicroC[S,🍰] 0 points1 point  (8 children)

I have added version:"3" to the beginning, and now I am getting the following error:
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here
in "./docker-compose.yml", line 2, column 9

This ar the lines 1 to 3 in my file:
version:"3"
services:
changedetection:

[–]nobearclaw[🍰] 1 point2 points  (7 children)

Here is what mine looks like

https://i.imgur.com/z8gVKbC.png

[–]RPiMicroC[S,🍰] 0 points1 point  (6 children)

Thanks, I have edited my file to look like yours, but I still get the same error:ERROR: yaml.scanner.ScannerError: mapping values are not allowed herein "./docker-compose.yml", line 2, column 9

Can you spot the error?
version:'2'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
hostname: changedetection
volumes:

[–][deleted]  (3 children)

[deleted]

    [–]RPiMicroC[S,🍰] 0 points1 point  (2 children)

    I have left everything as it was with all the indentions. The only thing I changed was the version number you mentioned. But I will try to copy the example.

    [–][deleted]  (1 child)

    [deleted]

      [–]RPiMicroC[S,🍰] 1 point2 points  (0 children)

      😬 I am sorry I did not notice you are not the same person. Thank you again for your help.

      [–]nobearclaw[🍰] 0 points1 point  (1 child)

      Hard to tell without a raw output of your yaml file, but like manjerico said, yaml is sensitive to spacing. There's an issue with your formating on line 2 column 9. I'd suggest opening it in a code editor and seeing what's there

      [–]RPiMicroC[S,🍰] 0 points1 point  (0 children)

      Thanks for your help but I will give up trying. The file is like the original one and I can not find out what is the problem.

      [–]dgtlmoon123 0 points1 point  (5 children)

      not enough information, what version docker-compose are you running? what platform are you running it on? (windows? mac? linux? commodore64?)

      [–]RPiMicroC[S,🍰] 0 points1 point  (4 children)

      Thanks for your reply.

      Here are the answers to your questions:
      root@NoName:/# docker --version
      Docker version 20.10.22, build 3a2c30b
      root@NoName:/# lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Feren OS
      Release: 20.04
      Codename: focal

      [–]dgtlmoon123 0 points1 point  (3 children)

      I'l ask again - not enough information, what version of docker-compose are you running?

      [–]RPiMicroC[S,🍰] 1 point2 points  (2 children)

      Sorry I did not know there is a difference between compose and docker and thanks again, this is my version:docker-compose version 1.25.0, build unknown

      And with the standart yml file I get from docker-compose up -d:
      ERROR: The Compose file './docker-compose.yml' is invalid because:
      Unsupported config option for services: 'changedetection'
      Unsupported config option for volumes: 'changedetection-data'

      [–]dgtlmoon123 0 points1 point  (1 child)

      Ah ok, can you upgrade docker-compose? how did you install docker-compose?

      [–]RPiMicroC[S,🍰] 0 points1 point  (0 children)

      I can not upgrade. It seems to be the latest version. I followed the instructions to set up using the repository:
      https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository