title: Error: database is uninitialized and password option is not specified
body: <p>I'm new to docker. I've been following this tutorial: <a href="https://medium.com/coderscorner/connecting-to-mysql-through-docker-997aa2c090cc" rel="nofollow noreferrer">https://medium.com/coderscorner/connecting-to-mysql-through-docker-997aa2c090cc</a> . I've set up the root password but once I tried to access the mysql command, it throws out this database is uninitialized error. Also, when I do <code>docker-compose up</code> command to pull the needed modules, it gives out an <strong>django.db.utils.InternalError: (1049, "Unknown database 'bitpal'")</strong>. The command I placed was:</p>
  
  <p><code>docker run --name=mysql -e MYSQL_USER=root MYSQL_ROOT_PASSWORD=password -d mysql</code></p>
  
  <p>I reckon I've searched for answers here but I couldn't be sure of what's wrong.</p>
  
  <p><strong>docker-compose.yml</strong></p>
  
  <pre><code>version: '2'
  services:
    # Redis
    mysql:
      image: mysql:5.7
      restart: always
      hostname: mysql
      container_name: mysql
      environment:
        - MYSQL_USER=root
        - MYSQL_ROOT_PASSWORD=password
        - MYSQL_DB=bitpal
      ports:
        - "3306:3306"
  
  
    # Redis
    redis:
      image: redis:latest
      restart: always
      hostname: redis
      container_name: redis
      ports:
        - "6379:6379"
  
  
    # Django web server
    bitpal:
      image: python:3.5
      restart: always
      hostname: bitpal
      container_name: bitpal
      working_dir: /bitpal
      command: ./bin/start_dev.sh
      volumes:
        - ./bitpal:/bitpal
        - ./etc/config:/etc/config
        - ./log:/log
      ports:
        - "80:80"
      links:
        - mysql
        - redis
      depends_on:
        - mysql
      environment:
        # Database
        - DB_NAME=bitpal
        - DB_USER=root
        - DB_PASSWORD=password
        - DB_HOST=mysql
        - DB_PORT=3306
  
  
    # Celery worker
    worker:
      image: python:3.5
      restart: always
      container_name: worker
      command: bash -c "./bin/install.sh &amp;&amp; ./bin/celery_worker.sh"
      working_dir: /bitpal
      volumes:
        - ./bitpal:/bitpal
        - ./etc/config:/etc/config
        - ./log:/log
      links:
        - mysql
        - redis
      depends_on:
        - redis
  
  
    # Bitshares websocket listener
    websocket_listener:
      image: python:3.5
      restart: always
      container_name: websocket_listener
      command: bash -c "./bin/install.sh &amp;&amp; ./bin/websocket_listener.sh"
      working_dir: /bitpal
      volumes:
        - ./bitpal:/bitpal
        - ./etc/config:/etc/config
        - ./log:/log
      links:
        - mysql
        - redis
      depends_on:
        - redis
  
  
    # Nginx
    nginx:
      image: nginx:1.12.1
      container_name: nginx
      ports:
        - "8000:80"
      volumes:
        - ./bitpal:/home/bitpal/bitpal/bitpal
        - ./nginx:/etc/nginx/conf.d
      depends_on:
        - bitpal
  </code></pre>
  
  <p>My directory looks like this.</p>
  
  <pre><code>`**ROOT**
       `root: .gitignore, docker-compose.yml, docker-compose-production.yml... 
       /bitpal /etc /log /nginx /public_html`
  
  **ROOT/bitpal**
        `.gitignore, Dockerfile, Makefile, manage.py... /bin /bitpal /media 
        /static /tests`
  </code></pre>
  
  <p>All the project's <code>.sh</code> files are stored under root/bitpal/bin. Do I place <code>wait-for-it.sh</code> there instead or place it in bitpal and nginx folders?</p>