Migrating Wordpress site to docker creates fresh installation

Hi,
I am new to Docker and I am trying to migrate my existing wordpress site from to docker with in the same server. I am using nginx proxy for the frontend connection. however when I run my docker-compose and access the site I am getting a fresh installation page. Below is my docker-compose config,

version: ‘3.6’

services:
wordpress_db:
image: mysql:{MYSQLDB_VERSION} container_name: mysql command: --default-authentication-plugin=mysql_native_password restart: always environment: - MYSQL_ROOT_PASSWORD={MYSQL_ROOT_PASSWORD}
- MYSQL_USER={MYSQL_USER} - MYSQL_PASSWORD={MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
ports:
- 3306:3306
volumes:
- ./database/data:/var/lib/mysql
- ./mysql_config:/tmp/mysql_config

wordpress:
depends_on:
- mysql
restart: always
image: wordpress:{WORDPRESS_VERSION} container_name: wordpress volumes: - {WORDPRESS_DATA_DIR}:/var/www/html
environment:
- WORDPRESS_DB_NAME={WORDPRESS_DB_NAME} - WORDPRESS_DB_HOST={WORDPRESS_DB_HOST}
- WORDPRESS_DB_USER={WORDPRESS_DB_USER} - WORDPRESS_DB_PASSWORD={WORDPRESS_DB_PASSWORD}

nginx:
image: nginx:{NGINX_VERSION:-latest} container_name: nginx ports: - '80:80' - '443:443' volumes: - {NGINX_CONF_DIR}:/etc/nginx/conf.d
- {NGINX_LOG_DIR}:/var/log/nginx - {WORDPRESS_DATA_DIR}:/var/www/html
depends_on:
- wordpress
restart: always

Can someone help in validating this config and let me know where I am going wrong.