Web Developer
I am trying to backup my appwrite instance and it won't let me because of the following:
" docker-compose exec mariadb sh -c 'exec mysqldump --all-databases --add-drop-database -u"$MYSQL_USER" -p"$MYSQL_PASSWORD"' > ./dump.sql
ERROR: The Compose file './docker-compose.yml' is invalid because:
networks.appwrite value Additional properties are not allowed ('name' was unexpected)
networks.gateway value Additional properties are not allowed ('name' was unexpected)
networks.runtimes value Additional properties are not allowed ('name' was unexpected)
Invalid top-level property "x-logging". Valid top-level sections for this Compose file are: services, version, networks, volumes, and extensions starting with "x-".
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/"