adding exercise for docker compose

This commit is contained in:
Anja Freudenreich
2024-04-12 22:09:33 +02:00
parent 46192ddcc9
commit ab4179c785
13 changed files with 440 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# Use the official MySQL image from Docker Hub
FROM mysql:latest
# Set environment variables
ENV MYSQL_ROOT_PASSWORD=root_password
ENV MYSQL_DATABASE=employees
# Copy the SQL initialization script into the container
COPY init.sql /docker-entrypoint-initdb.d/
# Expose port 3306 to allow external connections to the database
EXPOSE 3306