title: GitHub actions + MySQL: can't set lower_case_table_names variable
body: <p>I am trying to change lower_case_table_names variable in MySQL docker hub with GitHub Actions.  I am using mysql docker (<a href="https://hub.docker.com/_/mysql" rel="nofollow noreferrer">https://hub.docker.com/_/mysql</a>) but it does not work. I have tried both: by using an additional cnf file, and by changing the variable when running mysql.</p>
  <p>My stack.yml file is:</p>
  <pre><code>version: '3.1'
  
    services:
  
      db:
        image: mysql
        restart: always
        environment:
          MYSQL_ROOT_PASSWORD: root
          MYSQL_DATABASE: myDatabase
        ports:
          - &quot;3308:3306&quot;
          
      adminer:
        image: adminer
        restart: always
        ports:
          - 8080:8080
  
  </code></pre>
  <p>and my workflow.yml file is:</p>
  <pre><code>name: Build and test of Java Project
   
  on: [push]
   
  jobs:
   build:
     runs-on: ubuntu-latest
     timeout-minutes: 2.5
    
     steps:
       - uses: actions/checkout@v2
       - name: Set up JDK 1.8
         uses: actions/setup-java@v1
         with:
           java-version: 1.8
       - name: Setup timezone
         uses: zcong1993/setup-timezone@master
         with:
            timezone: Europe/Madrid
       - name: Create test database
         run: | 
           sudo docker --version
           sudo docker swarm init
           sudo docker stack deploy -c stack.yml mysql
           sudo docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
           sudo docker stack ps mysql
           sudo docker ps
           sudo service mysql start
           mysql -u root -proot  &lt; ./create_tables.sql
       - name: Build with Maven
         run: mvn -B test --file pom.xml
  
  </code></pre>
  <p>I have tried several options:</p>
  <ul>
  <li>(without my own cnf file) inserting the instruction command:
  --lower_case_table_names=1 after the &quot;image&quot; instruction in the stack.yml file.</li>
  <li>(without my own cnf file) running mysql by: sudo
  docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
  --lower_case_table_names=1</li>
  <li>with an own cnf file, changing the running instruction to: sudo docker run --name mysql -v
  /mysql:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
  and with my.cnf file as: [mysqld] lower_case_table_names  = 1</li>
  </ul>
  <p>Any help? Thank you very much.</p>