B
B
body92019-02-11 23:07:59
Windows
body9, 2019-02-11 23:07:59

Docker toolbox on windows. Unable to access site. Why?

Help me please!
I'm trying to deploy a project on docker. Containers are created, work. I can switch to phpmyadmin with localhost:8080. But I can't open the project on localhost:4480. Writes - Unable to access the site. What could be?
Here is the docker-compose.yml code:

version: '3'

services:

    web:
          build: ./web
          environment:
            - APACHE_RUN_USER=#1000
          volumes:
            - ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
          ports:
            - 4480:80
          working_dir: ${APP_PATH_CONTAINER}
    db:
          image: mariadb
          restart: always
          environment:
             MYSQL_ROOT_PASSWORD: qwerty
          volumes:
            - ${DB_PATH_HOST}:/var/lib/mysql
    phpmyadmin:
          image: phpmyadmin/phpmyadmin
          environment:
            - PMA_ARBITRARY=1
          restart: always
          ports:
            - 8080:80
          volumes:
            - /sessions
    composer:
          image: composer:1.6
          volumes:
            - ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
          working_dir: ${APP_PATH_CONTAINER}
          command: composer install

Here are my containers:
5c61d49633cf2243432191.png
I tried port forwarding in VirtualBox. After that earned phpmyadmin.
5c61d618c2ee7661920051.png
But the main project does not start. What could be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-02-12
@Zarom

It seems understood
In VirtualBox, also set the guest port to 4480.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question