I am trying to deploy nextcloud aio in proxmox. I am trying to run docker compose to pull the image but when I run the command, I get an error stating “services must be a mapping”. I’m sure its an indentation problem but im not sure how to fix it. below is my yaml config:

version: “3.8”

volumes:

nextcloud_aio_mastercontainer:

name: nextcloud_aio_mastercontainer

services:

nextcloud:

image: nextcloud/all-in-one:latest

restart: unless-stopped

container_name: nextcloud-aio-mastercontainer

volumes:

- nextcloud_aio_mastercontainer:/mnt/docker-aio-config

- /var/run/docker.sock:/var/run/docker.sock:ro

ports:

- 8195:8080 # change the port on the left side if it’s already in use on your host system.

environment:

- APACHE_PORT=11000 # change this port number if 11000 is already in use on your host system.

- APACHE_DISABLE_REWRITE_IP=1

- NEXTCLOUD_TRUSTED_DOMAINS=< nextcloud.DOMAIN.com > <192.168.0.5 > # Your domain name + proxy host IP

- TRUSTED_PROXIES=< 192.168.0.5 > # proxy host IP

  • thekrautboyB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I get an error stating “services must be a mapping”. I’m sure its an indentation problem but im not sure how to fix it. below is my yaml config:

    How should we figure out your indentation of the YML when you post it unformatted here? Use reddit markdown to format it properly as code so we can really see it and spot a error, or simply put your entire compose on a site like https://www.pastebin.com and share the link to it.

    Btw /r/Nextcloud and /r/Docker both exist for this.

  • ElevenNotesB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    When you work on windows, and you copy and paste into a linux session, make sure that your linux client supports the removal of CR on each new line you copy, otherwise you copy CRLF and your linux host can’t read the file properly and gives these kinds of errors.

    • fst916OPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      i will try to type out the whole thing instead of copy and paste.