all-in-one
all-in-one copied to clipboard
ERROR: Version in "./docker-compose.yml" is unsupported.
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Create docker-compose.yml
- Copy the contents from https://raw.githubusercontent.com/nextcloud/all-in-one/main/docker-compose.yml & edit
- Run docker-compose up -d
Expected behavior
The docker-compose up -d
command works
Actual behavior
The following error message is returned:
docker-compose up -d
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
Host OS
Debian
Nextcloud AIO version
Latest?
Current channel
Other valuable info
could you provide your docker-compose.yml file?
cat docker-compose.yml
version: "3.8"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer # This line is not allowed to be changed
services:
nextcloud:
image: nextcloud/all-in-one:latest # Must be changed to 'nextcloud/all-in-one:latest-arm64' when used with an arm64 CPU
restart: always
container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed
- /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation
ports:
# - 80:80 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
- 8081:8081
# - 8443:8443 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
environment: # Is needed when using any of the options below
- APACHE_PORT=11000 # Is needed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
- APACHE_IP_BINDING=127.0.0.1 # Should be set when running behind a reverse proxy that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
# - TALK_PORT=3478 # This allows to adjust the port that the talk container is using.
- NEXTCLOUD_DATADIR=/mnt/nextcloud/ncdata # Allows to set the host directory for Nextcloud's datadir. See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
- NEXTCLOUD_MOUNT=/mnt/ # Allows the Nextcloud container to access the chosen directory on the host. See https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host
# - DOCKER_SOCKET_PATH=/var/run/docker.sock # Needs to be specified if the docker socket on the host is not located in the default '/var/run/docker.sock'. Otherwise mastercontainer updates will fail.
# - DISABLE_BACKUP_SECTION=true # Setting this to true allows to hide the backup section in the AIO interface.
# # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
# # You can find further examples here: https://github.com/nextcloud/all-in-one/discussions/588
# caddy:
# image: caddy:alpine
# restart: always
# container_name: caddy
# volumes:
# - ./Caddyfile:/etc/caddy/Caddyfile
# - ./certs:/certs
# - ./config:/config
# - ./data:/data
# - ./sites:/srv
# network_mode: "host"
docker-compose --version
docker-compose version 1.25.0, build unknown
I followed the instructions here: https://docs.docker.com/engine/install/debian/ to install docker.
Maybe try it with docker-compose v2
And just a small note, 8081:8081
should be 8081:8080
, since the first number is the external port and 8080 the internal port
Maybe try it with docker-compose v2 And just a small note,
8081:8081
should be8081:8080
, since the first number is the external port and 8080 the internal port
I have another docker thingy running on 8080
Yes, but the first port is the port where it will be reachable, and the second is the port internally of the docker container, you could have 100 containers with the same internal port, as long the external port is different
Yes, but the first port is the port where it will be reachable, and the second is the port internally of the docker container, you could have 100 containers with the same internal port, as long the external port is different
ah, I see, that makes sense
Did upgrading to docker-compose v2 help?
And what is the ourput of docker version
?
Did upgrading to docker-compose v2 help?
Sorry I have plans this week, I'll get back to you when I can! :) tysm for the help (i havent tried docker compose v2 yet)
Did upgrading to docker-compose v2 help?
Sorry I have plans this week, I'll get back to you when I can! :) tysm for the help (i havent tried docker compose v2 yet)
Ok, I think your docker version would be the most interesting, because of this:
https://docs.docker.com/compose/compose-file/compose-file-v3