version: '2' services: mariadb: image: 'bitnami/mariadb:latest' environment: - MARIADB_USER=bn_moodle - MARIADB_DATABASE=bitnami_moodle - ALLOW_EMPTY_PASSWORD=yes volumes: - 'mariadb_data:/bitnami' moodle: image: 'bitnami/moodle:latest' environment: - MARIADB_HOST=mariadb - MARIADB_PORT_NUMBER=3306 - MOODLE_DATABASE_USER=bn_moodle - MOODLE_DATABASE_NAME=bitnami_moodle - ALLOW_EMPTY_PASSWORD=yes labels: kompose.service.type: nodeport ports: - '80:80' - '443:443' volumes: - 'moodle_data:/bitnami' depends_on: - mariadb volumes: mariadb_data: driver: local moodle_data: driver: local