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
    ·
    11 months 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.