"Can't connect to MySQL server on 'mysql' ([Errno 111] Connection refused)", but can be started manually
I'm trying to run Docker + Flask + MySQL, and here is my docker-compose.yaml: services: dockerflaskexample: image: dockerflaskexample build: context: . dockerfile: ./Dockerfile ports: - 5002:5002 volumes: - app_code:/app depends_on: - mysql container_name: dockerflaskexample mysql: image: mysql:latest restart: always environment:…