<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'm trying to run nginx/mysql/php in docker. Everything seems to
      run fine. I have added tty: true and changed the <br>
    </p>
    <p>Here is my Dockerfile, docker-compose.yaml and the nginx-related
      output. I did try adding tty: true but it made no difference.</p>
    <p>Any ideas? Thanks in advance. <br>
    </p>
    <p>biscotty<br>
    </p>
    <p><font face="monospace">'''</font></p>
    <p><font face="monospace">FROM nginx:alpine<br>
        <br>
        CMD ["nginx", "-g", "daemon off;"]<br>
        <br>
        EXPOSE 80 443<br>
      </font></p>
    <p><font face="monospace">'''</font></p>
    <p><font face="monospace">'''<br>
      </font></p>
    <p>version: '3'<span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">
        </span><br>
        <br>
        services:
        <br>
         php-fpm:
        <br>
           build:
        <br>
             context: ./php-fpm
        <br>
        <br>
         nginx:
        <br>
           build:
        <br>
             context: ./nginx
        <br>
           volumes:
        <br>
             - ../src:/var/www
        <br>
           ports:
        <br>
             - target: 80
        <br>
               host_ip: 127.0.0.1
        <br>
               published: 8080
        <br>
               protocol: tcp
        <br>
               mode: host
        <br>
        <br>
             - target: 80
        <br>
               host_ip: 127.0.0.1
        <br>
               published: 8000-9000
        <br>
               protocol: tcp
        <br>
               mode: host
        <br>
        <br>
        <br>
         database:
        <br>
           build:
        <br>
             context: ./database
        <br>
           environment:
        <br>
             - MYSQL_DATABASE=containerphp
        <br>
             - MYSQL_USER=container
        <br>
             - MYSQL_PASSWORD=container
        <br>
             - MYSQL_ROOT_PASSWORD=*******</span></p>
    <p><span style="font-family:monospace">'''</span></p>
    <p><span style="font-family:monospace">'''</span></p>
    <p><span style="font-family:monospace"><span
          style="font-family:monospace"><span
            style="font-family:monospace"><span
              style="color:#b26818;background-color:#ffffff;"></span>docker-nginx-1    
            | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty,
            will attempt to perform configuration<br>
            docker-nginx-1     | /docker-entrypoint.sh: Looking for
            shell scripts in /docker-entrypoint.d/<br>
            docker-nginx-1     | /docker-entrypoint.sh: Launching
            /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh<br>
            docker-nginx-1     | 10-listen-on-ipv6-by-default.sh: info:
            Getting the checksum of /etc/nginx/conf.d/default.conf<br>
            docker-nginx-1     | 10-listen-on-ipv6-by-default.sh: info:
            Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf<br>
            docker-nginx-1     | /docker-entrypoint.sh: Launching
            /docker-entrypoint.d/20-envsubst-on-templates.sh<br>
            docker-nginx-1     | /docker-entrypoint.sh: Launching
            /docker-entrypoint.d/30-tune-worker-processes.sh<br>
            docker-nginx-1     | /docker-entrypoint.sh: Configuration
            complete; ready for start up<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 1#1: using
            the "epoll" event method<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 1#1:
            nginx/1.23.1<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 1#1: built
            by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219) <br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 1#1: OS:
            Linux 5.15.0-46-generic<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 1#1:
            getrlimit(RLIMIT_NOFILE): 1048576:1048576<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 32#32:
            start worker processes<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 32#32:
            start worker process 33<br>
            docker-nginx-1     | 2022/09/05 22:55:51 [notice] 32#32:
            start worker process 34<br>
            docker-nginx-1 exited with code 0<br>
          </span></span></span></p>
    <p><span style="font-family:monospace"><span
          style="font-family:monospace"><span
            style="font-family:monospace">'''<br>
          </span></span></span></p>
  </body>
</html>