How to force time into Docker container using docker-compose
<p>Here is my docker compose file</p>

<pre><code>version: '2'
services:
  client:
    build: .
    container_name: client
    depends_on:
      - mysql
    environment:
      MYSQL_USER: api
      MYSQL_PASSWORD: api
      MYSQL_ROOT_PASSWORD: root
  mysql:
    image: mysql:5.7
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_USER: api
      MYSQL_PASSWORD: api
    ports:
      - "3306:3306"
</code></pre>

<p>I'm running tests on the client container (running debian).<br> The test depends on the dates since MySQL data is created on a given date.<br>So, I would like to enforce date into the container (both containers) so that <code>date</code> in client and <code>now()</code> in mysql returns a given older date. </p>

<p>EDIT : When i run the docker container, it gets the current time to the linux image and also to the database. Is there any way I can set those values to be 2014.01.01 (some specific date), which does not change. So the behavior inside the containers are always same</p>