From 1b5fa4e89b6013584ef1f636c1ce5e14ec827836 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Tue, 3 Oct 2023 01:23:48 +0530 Subject: Lab04: HTML Form Validation- adding .env and README --- Lab04/docker-compose.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Lab04/docker-compose.yml') diff --git a/Lab04/docker-compose.yml b/Lab04/docker-compose.yml index 1e40524..905fc89 100644 --- a/Lab04/docker-compose.yml +++ b/Lab04/docker-compose.yml @@ -5,10 +5,10 @@ services: image: mysql restart: always environment: - MYSQL_ROOT_PASSWORD: example - MYSQL_DATABASE: regformdata - MYSQL_USER: example - MYSQL_PASSWORD: example + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_DATABASE: ${MYSQL_DATABASE} + MYSQL_USER: ${MYSQL_USER} + MYSQL_PASSWORD: ${MYSQL_PASSWORD} ports: - "3306:3306" volumes: @@ -21,13 +21,19 @@ services: restart: always ports: - "80:80" + environment: + DB_SERVER: ${DB_SERVER} + DB_USERNAME: ${DB_USERNAME} + DB_PASSWORD: ${DB_PASSWORD} + DB_NAME: ${DB_NAME} + DB_TABLE: ${DB_TABLE} phpmyadmin: image: phpmyadmin/phpmyadmin restart: always environment: PMA_HOST: db - MYSQL_ROOT_PASSWORD: example + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} ports: - "8080:80" depends_on: -- cgit v1.2.3