docker-compose

Cài đặt LEMP để chạy Wordpress sử dụng Docker

1. NGINX version: '3' services: nginx: image: nginx:latest container_name: nginx ports: - '80:80' - '443:443' volumes: - './app:/var/www/html' - './config/nginx:/etc/nginx/conf.d' 2. MySQL (MariaDB) version: '3' services: nginx: image: nginx:latest container_name: nginx ports: - '80:80' - '443:443' volumes: - './app:/var/www/html' - './config/nginx:/etc/nginx/conf.d' mariadb: image: mariadb:10.3.9 container_name: mariadb restart: 'on-failure' environment: MYSQL_ROOT_PASSWORD: lab-skywirex volumes: - ${PWD} Luc nay co the truy cap vao container mariadb de thuc thi cau lenh SQL