services:
  db:
    image: mariadb:12.2.2
    ports:
      - "3306:3306"
    environment:
      - MARIADB_ROOT_PASSWORD=${CONNECTION_PASSWORD}
      - MARIADB_DATABASE=openfire
    healthcheck:
      test: [ "CMD-SHELL", "exit | mariadb -h 127.0.0.1 -u root -p$$MARIADB_ROOT_PASSWORD openfire -e 'select * from imready'" ]
      interval: 5s
      timeout: 20s
      retries: 30
    volumes:
      - ${GITHUB_WORKSPACE}/olddb:/docker-entrypoint-initdb.d


