Files
Hotel-Booking/docker-compose.yml
Iliyan Angelov 824eec6190 Hotel Booking
2025-11-16 14:19:13 +02:00

26 lines
554 B
YAML

version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: hotel-booking-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: hotel_booking_dev
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
volumes:
mysql_data: