version: '3.9' services: mysql: image: mysql:latest container_name: users_db restart: always environment: MYSQL_ROOT_PASSWORD: "Rakuten" MYSQL_DATABASE: rakuten_db ports: - "3306:3306" volumes: - ./init.sql:/docker-entrypoint-initdb.d/init.sql command: --innodb-flush-log-at-trx-commit=2 adminer: image: adminer container_name: admin_db restart: always ports: - "8080:8080"