Make WordPress Core

Ticket #47767: 47767.patch

File 47767.patch, 1.5 KB (added by Clorith, 6 years ago)
  • tools/local-env/default.template

     
    33
    44        listen 80 default_server;
    55        listen [::]:80 default_server;
     6        listen ${LOCAL_PORT} default_server;
     7        listen [::]:${LOCAL_PORT} default_server;
    68
    79        server_name localhost;
    810
  • docker-compose.yml

     
    99    image: nginx:alpine
    1010
    1111    networks:
    12       - wpdevnet
     12      wpdevnet:
     13        aliases:
     14          - wpdev.localhost
    1315
    1416    ports:
    1517      - ${LOCAL_PORT-8889}:80
    1618
    1719    environment:
    1820      LOCAL_DIR: ${LOCAL_DIR-src}
     21      LOCAL_PORT: ${LOCAL_PORT-8889}
    1922
    2023    volumes:
    2124      - ./tools/local-env/default.template:/etc/nginx/conf.d/default.template
    2225      - ./:/var/www
    2326
    2427    # Load our config file, substituning environment variables into the config.
    25     command: /bin/sh -c "envsubst '$$LOCAL_DIR' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
     28    command: /bin/sh -c "envsubst '$$LOCAL_DIR,$$LOCAL_PORT' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
    2629
    2730    depends_on:
    2831      - php