Hello guys im setting up an new wordpress docker machine im on the point to configure my sql db :
db:
build:
context: ./Docker/mysql
dockerfile: Dockerfile
container_name: mysql
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
networks:
- back
Dockerfile for sql:
FROM mysql:latest
this also works fine problem is i don't realy know where i should set the environment props like db name user and so on. any suggestions?