0

I have a Zend setup which was set using docker.

When I try to run docker-compose up eveything looks fine on the terminal but when try to open it in browser(localhost:8080) it shows me File not found error.

I am new to Zend, Please help.

Here is the details of the docker-compose

version: '2'
services:
  app:
  build:
   context: ./
   dockerfile: ./docker/app.dockerfile
  working_dir: /var/www/html/zendapp
  volumes:
  - ./:/var/www/html/zendapp
  environment:
  - "DB_PORT=3306"
  - "DB_HOST=database"
  - "XDEBUG_CONFIG=remote_host=localhost"
  web:
   build:
     context: ./
     dockerfile: ./docker/web.dockerfile
   working_dir: /var/www/html/zendapp
   volumes_from:
   - app
   ports:
   - 8080:80  
 database:
  image: mysql:5.6
  volumes:
  - ./zend-data:/var/lib/mysql   
  environment:
  - "MYSQL_DATABASE=zend"
  - "MYSQL_USER=root"
  - "MYSQL_PASSWORD=password"
  - "MYSQL_ROOT_PASSWORD=password"
  ports:
  - "33061:3306"   
volumes:
  zend-data:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.