I fired up a brand new server, but got this error:
TASK [AdnanHodzic.containerized-wordpress : Run docker-compose up] **
fatal: [almontecondo.com]: FAILED! => {"changed": true, "cmd": ["docker-compose", "-f", "docker-compose.yml", "up", "-d"], "delta": "0:00:00.331399", "end": "2020-05-06 18:19:46.734953", "msg": "non-zero return code", "rc": 1, "start": "2020-05-06 18:19:46.403554", "stderr": "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 version of \"2\" (or \"2.0\") 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.\nFor more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/", "stderr_lines": ["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 version of \"2\" (or \"2.0\") 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/"], "stdout": "", "stdout_lines": []}
I believe this is related to old Docker version for Ubuntu 16.04 release. There's 2 LTS releases after Ubuntu 16.04, Ubuntu 18.04 and Ubuntu 20.04 so please try using one of the latter ones.
I fired up a brand new server, but got this error:
TASK [AdnanHodzic.containerized-wordpress : Run docker-compose up] ** fatal: [almontecondo.com]: FAILED! => {"changed": true, "cmd": ["docker-compose", "-f", "docker-compose.yml", "up", "-d"], "delta": "0:00:00.331399", "end": "2020-05-06 18:19:46.734953", "msg": "non-zero return code", "rc": 1, "start": "2020-05-06 18:19:46.403554", "stderr": "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 version of \"2\" (or \"2.0\") and place your service definitions under the
services
key, or omit theversion
key and place your service definitions at the root of the file to use version 1.\nFor more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/", "stderr_lines": ["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 version of \"2\" (or \"2.0\") and place your service definitions under theservices
key, or omit theversion
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/"], "stdout": "", "stdout_lines": []}