Make WordPress Core

Ticket #52708: 52708-loopback-local-3.diff

File 52708-loopback-local-3.diff, 607 bytes (added by sandrasanzdev, 3 years ago)

Enables loopback requests in php (site) and cli (tests) containers.

  • docker-compose.yml

    diff --git a/docker-compose.yml b/docker-compose.yml
    index 060fd130e9..57268f0156 100644
    a b services: 
    5151    depends_on:
    5252      - mysql
    5353
     54    extra_hosts:
     55      - localhost:host-gateway
     56
    5457  ##
    5558  # The MySQL container.
    5659  ##
    services: 
    9497    # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
    9598    init: true
    9699
     100    extra_hosts:
     101      - localhost:host-gateway
     102
    97103volumes:
    98104  # So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume.
    99105  mysql: {}