stack name with docker-compose

There are several ways to do it: 1. Using –project-name (or -p) option when calling docker-compose: docker-compose -p “my-app” up Caution: -p “my-app” must come before up. 2. COMPOSE_PROJECT_NAME environment variable: export COMPOSE_PROJECT_NAME=my-app docker-compose up 3. COMPOSE_PROJECT_NAME in .env file Create a file named .env in the project root and set the COMPOSE_PROJECT_NAME environment variable … Read more

Version in “./docker-compose.yml” is unsupported. You might be seeing this error because you’re using the wrong Compose file version

You are doing everything right and it should work. But there was a bug in docker-compose 1.11.0 which not recognized file format 3.1 as valid. (3.0 works). There is already a new release of docker-compose (1.11.1) which includes the bugfix: Bugfixes Fixed a bug where the 3.1 file format was not being recognized as valid … Read more

How to upgrade docker-compose to latest version

First, remove the old version: If installed via apt-get sudo apt-get remove docker-compose If installed via curl sudo rm /usr/local/bin/docker-compose If installed via pip pip uninstall docker-compose Then find the newest version on the release page at GitHub or by curling the API and extracting the version from the response using grep or jq (thanks … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)