This commit is contained in:
13
mysql/Dockerfile
Normal file
13
mysql/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM mysql:8.0
|
||||
|
||||
# Set environment variables for MySQL
|
||||
ENV MYSQL_DATABASE=lamp_db \
|
||||
MYSQL_USER=lamp_user \
|
||||
MYSQL_PASSWORD=lamp_password \
|
||||
MYSQL_ROOT_PASSWORD=root_password
|
||||
|
||||
# Copy initialization scripts (if any)
|
||||
# COPY init.sql /docker-entrypoint-initdb.d/
|
||||
|
||||
# Expose MySQL port
|
||||
EXPOSE 3306
|
||||
Reference in New Issue
Block a user