diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-10-03 01:23:48 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-10-03 01:30:23 +0530 |
commit | 1b5fa4e89b6013584ef1f636c1ce5e14ec827836 (patch) | |
tree | 54a4f9b0899fb891ec32bb081415826c56318793 /Lab04/docker-compose.yml | |
parent | abcb2c27dedf8dff976d002a521c725746dace42 (diff) |
Lab04: HTML Form Validation- adding .env and README
Diffstat (limited to 'Lab04/docker-compose.yml')
-rw-r--r-- | Lab04/docker-compose.yml | 16 |
1 files changed, 11 insertions, 5 deletions
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: |