User Tools

Site Tools


divi:divi-docker_old

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

divi:divi-docker_old [2020/03/18 17:58] (current)
jose created
Line 1: Line 1:
 +https://​www.elegantthemes.com/​documentation/​developers/​divi-development-environment/​
 +
 +  docker-compose.yml
 +
 +<​code>​
 +version: '​3.3'​
 +
 +services:
 +
 +  mariadb:
 +    image: '​mariadb:​10.2.14'​
 +    environment:​
 +      MYSQL_ROOT_PASSWORD:​ password
 +      MYSQL_DATABASE:​ wordpress
 +      DATADIR: /data
 +    restart: on-failure
 +    volumes:
 +      - '​database:/​data'​
 +    network_mode:​ '​service:​wordpress'​
 +
 +  wordpress:
 +    image: '​elegantthemes/​divi-dev'​
 +    hostname: divi-dev
 +    volumes:
 +      - '​${PWD}:/​workspace/​wordpress'​
 +    ports:
 +      - '​80:​80' ​    # nginx
 +      - '​3306:​3306'​ # mariadb
 +      - '​3000:​3000'​ # webpack hmr
 +
 +volumes:
 +  database: {}
 +</​code>​
 +
 +  docker-compose up -d
 +Nos da un error por ip6 de php-fpm, se soluciona así:
 +  docker-compose exec wordpress sed -i '​s/​listen = \[::​\]:​9000/​listen = 9000/​g'​ /​etc/​php/​7.3/​fpm/​pool.d/​www.conf
 +
 +Instalamos wordpress:
 +  docker-compose exec -u 1000 wordpress divi-dev setup
 +<​code>​
 +URL:       ​http://​local.divi-dev.site
 +Username: ​ divi-dev
 +Password: ​ password
 +</​code>​
 +local.divi-dev.site apunta a nuestra ip local 127.0.0.1
 +
 +Ya podemos entrar en:
 +
 +http://​local.divi-dev.site/​admin
 +
  
divi/divi-docker_old.txt · Last modified: 2020/03/18 17:58 by jose