Create the docker-compose.yml file to deploy a Moodle application, using Nginx as a webserver, latest PHP, and MySQL as a database engine:
version: '3.7' services: nginx: image: nginx:latest ports: - 80:80 volumes: - ./moodle:/var/www/html php: image: php:latest depends_on: - nginx volumes: - ./moodle:/var/www/html mysql: image: mysql:latest environment: MYSQL_ROOT_PASSWORD: my-secret-pw volumes: - db:/var/lib/mysql volumes: db: external:
Do I need to install Moodle in docker from an image or from a moodle downloaded directory files?
You can install Moodle from a downloaded directory of Moodle files, or you can use an existing image to quickly deploy a Moodle application in Docker.
No hay comentarios.:
Publicar un comentario