Docker机器获取nginx错误502 Bad Gate

时间:2018-01-10 09:20:50

标签: apache docker nginx typo3 docker-compose

我正在使用TYPO3 Docker Boilerplate和dinghy。问题是,当我从我的本地计算机访问typo3.docker我得到502 Bad Gate nginx/1.13.5时,我没有选择安装nginx,而是apache

有任何关于我为什么会收到此nginx错误的想法吗?

Dockerfile.development

FROM webdevops/php-apache-dev:ubuntu-14.04

ENV PROVISION_CONTEXT "development"

# Deploy scripts/configurations
COPY etc/             /opt/docker/etc/

RUN ln -sf /opt/docker/etc/cron/crontab /etc/cron.d/docker-boilerplate \
    && chmod 0644 /opt/docker/etc/cron/crontab \
    && echo >> /opt/docker/etc/cron/crontab \
    && ln -sf /opt/docker/etc/php/development.ini /opt/docker/etc/php/php.ini

# Configure volume/workdir
WORKDIR /app/

搬运工-compose.yml

...
app:
    build:
      context: .
      dockerfile: Dockerfile.development
      ...
      environment:
         - VIRTUAL_HOST=.typo3.docker
         - VIRTUAL_PORT=80
         - POSTFIX_RELAYHOST=[mail]:1025

...

0 个答案:

没有答案