21 lines
583 B
Docker
21 lines
583 B
Docker
FROM mysql:8.0
|
|
|
|
# Set environment variables
|
|
ENV MYSQL_DATABASE=habbo_retro
|
|
ENV MYSQL_ROOT_PASSWORD=root_password_2024
|
|
ENV MYSQL_USER=habbo_user
|
|
ENV MYSQL_PASSWORD=habbo_password_2024
|
|
|
|
# Copy custom MySQL configuration
|
|
COPY conf.d/custom.cnf /etc/mysql/conf.d/
|
|
|
|
# Copy database initialization script
|
|
COPY init/habbo_retro_complete_20251206_155812.sql /docker-entrypoint-initdb.d/
|
|
|
|
# Expose MySQL port
|
|
EXPOSE 3306
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
CMD mysqladmin ping -h localhost -u${MYSQL_USER} -p${MYSQL_PASSWORD} || exit 1
|